diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-30 12:54:50 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-31 16:21:47 -0700 |
| commit | 4128cc4cb44acb415be3cfdfa008fd6c95ceee74 (patch) | |
| tree | 321c8c7ed1c28247377bf4122365c047d69f891f /src/rustdoc | |
| parent | 638db28c472c1edadc3c37f900df28f14cca7665 (diff) | |
| download | rust-4128cc4cb44acb415be3cfdfa008fd6c95ceee74.tar.gz rust-4128cc4cb44acb415be3cfdfa008fd6c95ceee74.zip | |
Make utility funs in core::int, core::uint, etc. not by-reference
Closes #3302
Diffstat (limited to 'src/rustdoc')
| -rw-r--r-- | src/rustdoc/unindent_pass.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rustdoc/unindent_pass.rs b/src/rustdoc/unindent_pass.rs index 644f298cf33..31d1584e760 100644 --- a/src/rustdoc/unindent_pass.rs +++ b/src/rustdoc/unindent_pass.rs @@ -45,18 +45,18 @@ fn unindent(s: ~str) -> ~str { min_indent } else { saw_first_line = true; - let mut spaces = 0u; + let mut spaces = 0; do str::all(line) |char| { // Only comparing against space because I wouldn't // know what to do with mixed whitespace chars if char == ' ' { - spaces += 1u; + spaces += 1; true } else { false } }; - uint::min(&min_indent, &spaces) + uint::min(min_indent, spaces) } }; |
