Skip to content

Commit

Permalink
add type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed Mar 27, 2024
1 parent b60da70 commit 612eaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CircularArrayBuffers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ end
Return the index of the `idx`-th element in the buffer, if index is one past the size, return 1, else error.
"""
function wrap_index(idx, n)
function wrap_index(idx::Int, n::Int)
if idx <= n
return idx
elseif idx <= 2n
Expand Down

0 comments on commit 612eaa7

Please sign in to comment.