diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-02-17 09:47:49 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-02-18 09:09:12 -0500 |
| commit | 2b5720a15fd7e8ae3883dcaee556b000e962b052 (patch) | |
| tree | 967aa12a6089aca54098adf56e97abff223b8798 /src/rustbook | |
| parent | 700c518f2afd4b759fb54b867aee62660188d870 (diff) | |
| download | rust-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.rs | 4 |
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!() } |
