Skip to content

Commit 481089a

Browse files
Include type signature in increment! definition.
Co-authored-by: Matt Fishman <[email protected]>
1 parent d739a6e commit 481089a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iterators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Base.iterate(iterator::AbstractNetworkIterator, init = true)
2424
return rv, false
2525
end
2626

27-
function increment! end
27+
increment!(iterator::AbstractNetworkIterator) = throw(MethodError(increment!, Tuple{typeof(iterator)}))
2828
compute!(iterator::AbstractNetworkIterator) = iterator
2929

3030
step!(iterator::AbstractNetworkIterator) = step!(identity, iterator)

0 commit comments

Comments
 (0)