Alex Crichton 10 gadi atpakaļ
vecāks
revīzija
445fbab108
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -29,7 +29,7 @@
 //!     let start: Ratio<BigInt> = Ratio::from_integer(FromPrimitive::from_u64(number).unwrap());
 //!     let mut approx = start.clone();
 //!
-//!     for _ in range(0, iterations) {
+//!     for _ in 0..iterations {
 //!         approx = (&approx + (&start / &approx)) /
 //!             Ratio::from_integer(FromPrimitive::from_u64(2).unwrap());
 //!     }