소스 검색

Fix doc test

Alex Crichton 10 년 전
부모
커밋
445fbab108
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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());
 //!     }