Commit 5004c76
authored
Correct a mistaken range violation (#3741)
"d2 is unsafe because it goes beyond a's bounds." is incorrect, because slice "0..3" is non-inclusive, meaning that the slice is actually valid. (a.ptr[0..3] == a[0..$]) This is probably just a minor oversight about the range's end value being non-inclusive.1 parent 6465a19 commit 5004c76
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4011 | 4011 | | |
4012 | 4012 | | |
4013 | 4013 | | |
4014 | | - | |
4015 | | - | |
| 4014 | + | |
| 4015 | + | |
4016 | 4016 | | |
4017 | 4017 | | |
4018 | 4018 | | |
| |||
0 commit comments