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/rustdoc | |
| parent | be9129f556f8f43158ccac31dab50aa6b79115b6 (diff) | |
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/rustdoc')
| -rw-r--r-- | src/rustdoc/unindent_pass.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustdoc/unindent_pass.rs b/src/rustdoc/unindent_pass.rs index ea439fd94c4..8d6aec73300 100644 --- a/src/rustdoc/unindent_pass.rs +++ b/src/rustdoc/unindent_pass.rs @@ -47,7 +47,7 @@ fn unindent(s: str) -> str { } else { saw_first_line = true; let spaces = 0u; - str::loop_chars(line) {|char| + str::all(line) {|char| // Only comparing against space because I wouldn't // know what to do with mixed whitespace chars if char == ' ' { @@ -117,4 +117,4 @@ fn should_not_ignore_first_line_indent_in_a_single_line_para() { let s = "line1\n\n line2"; let r = unindent(s); assert r == "line1\n\n line2"; -} \ No newline at end of file +} |
