From 4128cc4cb44acb415be3cfdfa008fd6c95ceee74 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 30 Aug 2012 12:54:50 -0700 Subject: Make utility funs in core::int, core::uint, etc. not by-reference Closes #3302 --- src/rustdoc/unindent_pass.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rustdoc') 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) } }; -- cgit 1.4.1-3-g733a5