Skip to content

Commit

Permalink
Merge pull request #2214 from herwinw/stop_iterator_message
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m authored Jul 14, 2024
2 parents 76140f2 + 59556b1 commit 0177e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enumerator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def next_values
end

raise_stop_iteration = ->(result = nil) do
stop_iteration = StopIteration.new('iteration reached and end')
stop_iteration = StopIteration.new('iteration reached an end')
stop_iteration.instance_variable_set(:@result, result) unless result.nil?
raise stop_iteration
end
Expand Down

0 comments on commit 0177e1f

Please sign in to comment.