]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/spaces-around-ranges.rs
Tidy up and pass tests
[rust.git] / tests / target / spaces-around-ranges.rs
index 7b280f1439d41e403fdcda2fe0ba0ebbc4348d3f..b53e5b58b8cd62c9359f757ec43dfb2c0a703bee 100644 (file)
@@ -4,12 +4,12 @@ fn bar(v: &[u8]) {}
 
 fn foo() {
     let a = vec![0; 20];
-    for j in 0 ... 20 {
+    for j in 0 ..= 20 {
         for i in 0 .. 3 {
             bar(a[i .. j]);
             bar(a[i ..]);
             bar(a[.. j]);
-            bar(a[... (j + 1)]);
+            bar(a[..= (j + 1)]);
         }
     }
 }