Skip to content

Commit 7f54e01

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 177374 b: refs/heads/master c: 16a2503 h: refs/heads/master v: v3
1 parent 1b1468b commit 7f54e01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3cc191e58acfcffdce6fd718c8fcc1e1d3c36d23
2+
refs/heads/master: 16a2503a1c4c99a50ceea148d56dc8a6309be048
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a45e117733b866302fa99390553d1c548508dcca
55
refs/heads/try: fde4472848b662a4d1236388c4cf15e2450237e6

trunk/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
/// }

trunk/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)