Skip to content

Commit 16a2503

Browse files
author
Jorge Aparicio
committed
undo some conversions
1 parent 3cc191e commit 16a2503

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libcore/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2539,7 +2539,7 @@ pub struct Range<A> {
25392539
/// ```
25402540
/// let array = [0, 1, 2, 3, 4];
25412541
///
2542-
/// for i in 0..5 {
2542+
/// for i in range(0, 5) {
25432543
/// println!("{}", i);
25442544
/// assert_eq!(i, array[i]);
25452545
/// }

src/librustc/util/lev_distance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub fn lev_distance(me: &str, t: &str) -> uint {
4545
fn test_lev_distance() {
4646
use std::char::{ from_u32, MAX };
4747
// Test bytelength agnosticity
48-
for c in 0u32..MAX as u32
48+
for c in (0u32..MAX as u32)
4949
.filter_map(|i| from_u32(i))
5050
.map(|i| i.to_string()) {
5151
assert_eq!(lev_distance(&c[], &c[]), 0);

0 commit comments

Comments
 (0)