Skip to content

Commit 70c1051

Browse files
committed
Don't convert unbound method to proc in Truffle::Splitter.split
1 parent eb30bfe commit 70c1051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/splitter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def split_type_chars(string, limit, callable)
107107

108108
callable.call(last)
109109
else
110-
string.each_char(&callable)
110+
string.each_char { |c| callable.call(c) }
111111

112112
callable.call(empty_string(string)) if tail_empty?(limit)
113113
end

0 commit comments

Comments
 (0)