From 445fbab108f4fc73df8170a3d92752bb2c8747b0 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 22 Mar 2015 10:43:11 -0700 Subject: [PATCH] Fix doc test --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8f5ffa1..db355ff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,7 @@ //! let start: Ratio = 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()); //! }