Skip to content

Commit

Permalink
Merge pull request #125 from MineralsCloud:EachParsed
Browse files Browse the repository at this point in the history
Modify `each.jl` to use `parse` instead of `tryparse` in the `iterate` function for `EachParsed`
  • Loading branch information
singularitti authored Oct 30, 2023
2 parents 74d9a0b + 04cf8b8 commit 4249938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PWscf/output/each.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Base.iterate(regexmatchiterator::EachParsed{T}) where {T}
return nothing
else
matched, state = iterated
return tryparse(T, matched.match), state
return parse(T, matched.match), state
end
end
function Base.iterate(regexmatchiterator::EachParsed{T}, state) where {T}
Expand All @@ -97,7 +97,7 @@ function Base.iterate(regexmatchiterator::EachParsed{T}, state) where {T}
return nothing
else
matched, state = iterated
return tryparse(T, matched.match), state
return parse(T, matched.match), state
end
end

Expand Down

0 comments on commit 4249938

Please sign in to comment.