From e3b10ab83beb401e8278fe92de966876e533cb03 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Sun, 19 Jul 2020 01:56:52 -0700 Subject: [PATCH] Fix the doc issue described in #80 (#99) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 793940e..db098fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -405,7 +405,7 @@ impl Pixels { /// assert_eq!(pixel_pos, (0, 20)); /// /// let pixel_pos = pixels.clamp_pixel_pos((11, 3000)); - /// assert_eq!(pixel_pos, (11, 240)); + /// assert_eq!(pixel_pos, (11, 239)); /// # Ok::<(), pixels::Error>(()) /// ``` pub fn clamp_pixel_pos(&self, pos: (isize, isize)) -> (usize, usize) {