Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/iruby/backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def eval(code, store_history)
# TODO Add IRuby.cache_size which controls the size of the Out array
# and sets the oldest entries and _<n> variables to nil.
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment still references the old variable naming pattern _<n>. This should be updated to _o<n> to match the new naming convention introduced in this change.

Suggested change
# and sets the oldest entries and _<n> variables to nil.
# and sets the oldest entries and _o<n> variables to nil.

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

if store_history
b.local_variable_set("_#{Out.size}", out)
b.local_variable_set("_o#{Out.size}", out)
b.local_variable_set("_i#{In.size}", code)

Out << out
Expand Down
Loading