Skip to content

Commit 612eaa7

Browse files
add type signature
1 parent b60da70 commit 612eaa7

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
@@ -92,7 +92,7 @@ end
9292
9393
Return the index of the `idx`-th element in the buffer, if index is one past the size, return 1, else error.
9494
"""
95-
function wrap_index(idx, n)
95+
function wrap_index(idx::Int, n::Int)
9696
if idx <= n
9797
return idx
9898
elseif idx <= 2n

0 commit comments

Comments
 (0)