Skip to content

Commit

Permalink
Update lib/repl_type_completor/type_analyzer.rb
Browse files Browse the repository at this point in the history
Fix typo

Co-authored-by: Stan Lo <[email protected]>
  • Loading branch information
tompng and st0012 authored Oct 19, 2024
1 parent 7924ea5 commit a1efd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/repl_type_completor/type_analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def evaluate_reference_read(node, scope)
alias evaluate_instance_variable_read_node evaluate_reference_read

def evaluate_it_local_variable_read_node(_node, scope)
# `it` is not a normal local variable. It can be overrided like `tap{p it; it=1}`.
# `it` is not a normal local variable. It can be overridden like `tap{p it; it=1}`.
# Use the name `_1` instead of `it` to avoid conflict.
scope['_1'] || Types::NIL
end
Expand Down

0 comments on commit a1efd9d

Please sign in to comment.