about summary refs log tree commit diff
path: root/src/rustbook
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-02-17 09:47:49 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-02-18 09:09:12 -0500
commit2b5720a15fd7e8ae3883dcaee556b000e962b052 (patch)
tree967aa12a6089aca54098adf56e97abff223b8798 /src/rustbook
parent700c518f2afd4b759fb54b867aee62660188d870 (diff)
downloadrust-2b5720a15fd7e8ae3883dcaee556b000e962b052.tar.gz
rust-2b5720a15fd7e8ae3883dcaee556b000e962b052.zip
Remove `i`, `is`, `u`, or `us` suffixes that are not necessary.
Diffstat (limited to 'src/rustbook')
-rw-r--r--src/rustbook/book.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustbook/book.rs b/src/rustbook/book.rs
index e7739300790..21f8a7793dc 100644
--- a/src/rustbook/book.rs
+++ b/src/rustbook/book.rs
@@ -143,9 +143,9 @@ pub fn parse_summary<R: Reader>(input: R, src: &Path) -> Result<Book, Vec<String
             path_to_root: path_to_root,
             children: vec!(),
         };
-        let level = indent.chars().map(|c| {
+        let level = indent.chars().map(|c| -> usize {
             match c {
-                ' ' => 1us,
+                ' ' => 1,
                 '\t' => 4,
                 _ => unreachable!()
             }