For a typo let_some_variable =
, suggest let some_variable =
instead of let let_some_variable =
#117894
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
I accidentally typoed an underscore instead of a space between
let
and the name of the new variable I was trying to declare. If a binding isn't found, and it starts withlet_
(or franklyletsome_variable
, if you forget/miss the space completely), it seems like it would be more likely to suggestlet
(let
plus a space) rather than the current suggestion of an additionallet
.Other cases
No response
Anything else?
@estebank said I should file this ❤️
The text was updated successfully, but these errors were encountered: