Skip to content

Commit 6ffd850

Browse files
authored
Avoid conflict with Ruby's numbered parameters (#380)
Signed-off-by: Takahiro SATOH <zalt50cc@gmail.com>
1 parent 272f5c2 commit 6ffd850

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/iruby/backend.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def eval(code, store_history)
1818
# TODO Add IRuby.cache_size which controls the size of the Out array
1919
# and sets the oldest entries and _<n> variables to nil.
2020
if store_history
21-
b.local_variable_set("_#{Out.size}", out)
21+
b.local_variable_set("_o#{Out.size}", out)
2222
b.local_variable_set("_i#{In.size}", code)
2323

2424
Out << out

0 commit comments

Comments
 (0)