diff options
| author | Kevin Cantu <me@kevincantu.org> | 2012-01-30 20:27:16 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-31 14:29:11 -0800 |
| commit | 685a434e0a4b432125feda745e4c4d034dc74245 (patch) | |
| tree | 98c67fbdadce8f60b7a579a2d05f2197ccc980dc /src/libstd | |
| parent | be9129f556f8f43158ccac31dab50aa6b79115b6 (diff) | |
| download | rust-685a434e0a4b432125feda745e4c4d034dc74245.tar.gz rust-685a434e0a4b432125feda745e4c4d034dc74245.zip | |
Rename str::loop_chars to str::all,
rename str::loop_chars_sub to str::substr_all, and propagate this change to std::rope and rustdoc's calls to these
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/rope.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rope.rs b/src/libstd/rope.rs index 5e856ff5e0e..b181ba7475c 100644 --- a/src/libstd/rope.rs +++ b/src/libstd/rope.rs @@ -1137,7 +1137,7 @@ mod node { fn loop_chars(node: @node, it: fn(char) -> bool) -> bool { ret loop_leaves(node, {|leaf| - ret str::loop_chars_sub(*leaf.content, + ret str::substr_all(*leaf.content, leaf.byte_offset, leaf.byte_len, it) }) @@ -1494,4 +1494,4 @@ mod tests { assert eq(r, r2); } -} \ No newline at end of file +} |
