rust/integral-geometry/src/lib.rs
changeset 13968 85645992bc8a
parent 13964 a325ed57ebfe
child 13971 48796bef9e69
--- a/rust/integral-geometry/src/lib.rs	Fri Oct 19 00:49:09 2018 +0300
+++ b/rust/integral-geometry/src/lib.rs	Fri Oct 19 00:09:45 2018 +0200
@@ -154,6 +154,8 @@
 
             Some(result)
         } else if self.point.x == self.point.y {
+            self.point.x += 1;
+            
             Some(self.point)
         } else {
             None