about summary refs log tree commit diff
path: root/src/libstd/collections
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2018-12-04 11:17:58 -0800
committerCorey Farwell <coreyf@rwell.org>2018-12-04 12:05:19 -0800
commitc025d6140999e07ddf0294f0676c64ff2322a210 (patch)
tree51430da0c1c62d653d24db743ffd5e6f0d39bf8d /src/libstd/collections
parent431e0ab62f7730f11db693c23f48403e4c719f82 (diff)
downloadrust-c025d6140999e07ddf0294f0676c64ff2322a210.tar.gz
rust-c025d6140999e07ddf0294f0676c64ff2322a210.zip
Replace usages of `..i + 1` ranges with `..=i`.
Diffstat (limited to 'src/libstd/collections')
-rw-r--r--src/libstd/collections/hash/map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 536ce2e16a0..1eea920c623 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -3610,7 +3610,7 @@ mod test_map {
             for i in 1..1001 {
                 assert!(m.insert(i, i).is_none());
 
-                for j in 1..i + 1 {
+                for j in 1..=i {
                     let r = m.get(&j);
                     assert_eq!(r, Some(&j));
                 }
@@ -3629,7 +3629,7 @@ mod test_map {
             for i in 1..1001 {
                 assert!(m.remove(&i).is_some());
 
-                for j in 1..i + 1 {
+                for j in 1..=i {
                     assert!(!m.contains_key(&j));
                 }