Skip to content

Commit

Permalink
Fix typo in call_error.cr (crystal-lang#13764)
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 authored and Blacksmoke16 committed Dec 11, 2023
1 parent 8ed5557 commit c6efe3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/semantic/call_error.cr
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class Crystal::Call
msg << '\n'
if similar_name == def_name
# This check is for the case `a if a = 1`
msg << "If you declared '#{def_name}' in a suffix if, declare it in a regular if for this to work. If the variable was declared in a macro it's not visible outside it)"
msg << "If you declared '#{def_name}' in a suffix if, declare it in a regular if for this to work. If the variable was declared in a macro it's not visible outside it."
else
msg << "Did you mean '#{similar_name}'?"
end
Expand Down

0 comments on commit c6efe3f

Please sign in to comment.