Skip to content

Commit d1b9adc

Browse files
Add note
1 parent 0b84087 commit d1b9adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CircularArrayBuffers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function wrap_index(idx::Int, n::Int)
9898
elseif idx <= 2n
9999
return idx - n
100100
else
101-
return -1
101+
return -1 # NOTE: This should never happen, due to @boundscheck
102102
end
103103
end
104104

0 commit comments

Comments
 (0)