Browse Source

canna have two bars, cap'n

Dave Gauer 4 years ago
parent
commit
c1371f5659
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/052_slices.zig

+ 1 - 1
exercises/052_slices.zig

@@ -17,7 +17,7 @@
 //
 //     const foo = digits[0..1];  // 0
 //     const bar = digits[3..9];  // 3 4 5 6 7 8
-//     const bar = digits[5..9];  // 5 6 7 8
+//     const baz = digits[5..9];  // 5 6 7 8
 //     const all = digits[0..];   // 0 1 2 3 4 5 6 7 8 9
 //
 // As you can see, a slice [x..y] starts with the index of the