Skip to content

Commit b5749a5

Browse files
author
Kristoffer Carlsson
authored
specify type for iterate call (#336)
1 parent 28df5cd commit b5749a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rational-functions/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Base.denominator(pq::AbstractRationalFunction) = pq.den
116116

117117
# Treat a RationalFunction as a tuple (num=p, den=q)
118118
Base.length(pq::AbstractRationalFunction) = 2
119-
function Base.iterate(pq, state=nothing)
119+
function Base.iterate(pq::AbstractRationalFunction, state=nothing)
120120
state == nothing && return (numerator(pq), 1)
121121
state == 1 && return (denominator(pq), 2)
122122
nothing

0 commit comments

Comments
 (0)