Skip to content

Spelling suggestions should consider trailing exclamation points #5780

Closed
@bstrie

Description

@bstrie
< sawrubh> suppose I wrote assert instead of assert!, I get this message
           : unresolved name: `assert`. Did you mean: `result`? what's
           the thing which generates the last suggestion
< sawrubh> I think that suggesting that I'm missing an ! would be more
           helpful, so just wondering who decides and how it decides what
           to suggest as the solution

As an aside, assert -> result is still a hilariously large edit distance.

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions