diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-19 11:07:13 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-19 12:24:43 -0500 |
| commit | 49684850bedcef007a2949c97872606d1d6dc325 (patch) | |
| tree | 3842f94c466f1466a391cfa344cc448998984f1a /src/libcore/str | |
| parent | 43f2c199e4e87d7ccd15658c52ad8dc5a1d54fb9 (diff) | |
| download | rust-49684850bedcef007a2949c97872606d1d6dc325.tar.gz rust-49684850bedcef007a2949c97872606d1d6dc325.zip | |
remove unnecessary parentheses from range notation
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index d9cf6dc086d..a54d8570795 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -1418,7 +1418,7 @@ impl StrExt for str { #[inline] fn ends_with(&self, needle: &str) -> bool { let (m, n) = (self.len(), needle.len()); - m >= n && needle.as_bytes() == &self.as_bytes()[(m-n)..] + m >= n && needle.as_bytes() == &self.as_bytes()[m-n..] } #[inline] |
