Skip to content

Commit

Permalink
tweak suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Sep 15, 2022
1 parent 98e20c0 commit 4bf7d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/parser/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ impl<'a> Parser<'a> {
if is_let {
err.span_suggestion(
non_item_span,
"considering use `const` instead of `let` for associated const",
"consider using `const` instead of `let` for associated const",
"const",
Applicability::MachineApplicable,
);
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/parser/suggest-assoc-const.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error: non-item in item list
--> $DIR/suggest-assoc-const.rs:4:5
|
LL | let _X: i32;
| ^^^ help: considering use `const` instead of `let` for associated const: `const`
| ^^^ help: consider using `const` instead of `let` for associated const: `const`

error: aborting due to previous error

0 comments on commit 4bf7d2c

Please sign in to comment.