diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-12 16:59:18 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-12 17:59:37 -0500 |
| commit | c1d48a85082cfe3683ad9eda5223d3259d4fa718 (patch) | |
| tree | ac65328b877bd7a2127dbd4d0edaf7b637f0878e /src/libsyntax/codemap.rs | |
| parent | 3a44a19af29585c02e81e22ea7665f829ae0590a (diff) | |
| download | rust-c1d48a85082cfe3683ad9eda5223d3259d4fa718.tar.gz rust-c1d48a85082cfe3683ad9eda5223d3259d4fa718.zip | |
cleanup: `&foo[0..a]` -> `&foo[..a]`
Diffstat (limited to 'src/libsyntax/codemap.rs')
| -rw-r--r-- | src/libsyntax/codemap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 9a422e17bb4..bf26687deed 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -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() }) |
