Skip to content

Commit 855540e

Browse files
authored
fix eltype
1 parent 4dd4888 commit 855540e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Primes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ end
259259

260260
IteratorSize(::Type{<:FactorIterator}) = Base.SizeUnknown()
261261
IteratorEltype(::Type{<:FactorIterator}) = Base.HasEltype()
262-
eltype(::Type{FactorIterator{T}}) where {T} = T
262+
eltype(::Type{FactorIterator{T}}) where {T} = Tuple{T, Int}
263263
Base.isempty(f::FactorIterator) = f.n == 1
264264

265265
# Iterates over the factors of n in an arbitrary order

0 commit comments

Comments
 (0)