Skip to content

Commit f509bac

Browse files
committed
---
yaml --- r: 24273 b: refs/heads/master c: baa08d5 h: refs/heads/master i: 24271: 1fa948e v: v3
1 parent a351b69 commit f509bac

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-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: 1d51cfa1e83ce18d05721683f2e60d9c2a9ae794
2+
refs/heads/master: baa08d5a958a42a219f8c61bdfca0e4112e16820
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/str.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,8 @@ pub pure fn rfind_from(s: &str, start: uint, f: fn(char) -> bool)
11751175
* than or equal to `len(s)`. `start` must be the index of a character
11761176
* boundary, as defined by `is_char_boundary`
11771177
*/
1178-
pub pure fn rfind_between(s: &str, start: uint, end: uint, f: fn(char) -> bool)
1178+
pub pure fn rfind_between(s: &str, start: uint, end: uint,
1179+
f: fn(char) -> bool)
11791180
-> Option<uint> {
11801181
assert start >= end;
11811182
assert start <= len(s);
@@ -1607,7 +1608,9 @@ pub pure fn char_range_at(s: &str, i: uint) -> {ch: char, next: uint} {
16071608
}
16081609

16091610
/// Pluck a character out of a string
1610-
pub pure fn char_at(s: &str, i: uint) -> char { return char_range_at(s, i).ch; }
1611+
pub pure fn char_at(s: &str, i: uint) -> char {
1612+
return char_range_at(s, i).ch;
1613+
}
16111614

16121615
/**
16131616
* Given a byte position and a str, return the previous char and its position

0 commit comments

Comments
 (0)