Skip to content

Commit 442fa69

Browse files
Stephan SahmStephan Sahm
authored andcommitted
small bug in Identity foreach
1 parent 1db404f commit 442fa69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Identity.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Base.eltype(::Type{<:Identity}) = Any
1818

1919
Base.iterate(a::Identity) = a.value, nothing
2020
Base.iterate(a::Identity, state) = state
21-
Base.foreach(f, a::Identity) = begin f(a); nothing; end
21+
Base.foreach(f, a::Identity) = begin f(a.value); nothing; end
2222
Base.map(f, a::Identity) = Identity(f(a.value))
2323
Base.Iterators.flatten(a::Identity) = convert(Identity, a.value)
2424

0 commit comments

Comments
 (0)