rust/integral-geometry/src/lib.rs
changeset 13952 85645992bc8a
parent 13948 a325ed57ebfe
child 13955 48796bef9e69
equal deleted inserted replaced
13951:54e2a3698425 13952:85645992bc8a
   152 
   152 
   153             self.point.x += 1;
   153             self.point.x += 1;
   154 
   154 
   155             Some(result)
   155             Some(result)
   156         } else if self.point.x == self.point.y {
   156         } else if self.point.x == self.point.y {
       
   157             self.point.x += 1;
       
   158             
   157             Some(self.point)
   159             Some(self.point)
   158         } else {
   160         } else {
   159             None
   161             None
   160         }
   162         }
   161     }
   163     }