diff --git a/src/enumerator.rb b/src/enumerator.rb index bb9bde943..9e2ec66c1 100644 --- a/src/enumerator.rb +++ b/src/enumerator.rb @@ -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