cleanup: &foo[0..a] -> &foo[..a]

This commit is contained in:
Jorge Aparicio
2015-01-12 16:59:18 -05:00
parent 3a44a19af2
commit c1d48a8508
44 changed files with 104 additions and 105 deletions

View File

@@ -313,7 +313,7 @@ impl FileMap {
let begin = begin.to_uint();
let slice = &self.src[begin..];
match slice.find('\n') {
Some(e) => &slice[0..e],
Some(e) => &slice[..e],
None => slice
}.to_string()
})