Skip to content

Commit baa08d5

Browse files
committed
Fix long line.
1 parent 1d51cfa commit baa08d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libcore/str.rs

+5-2
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)