Skip to content

Commit 4bf7d2c

Browse files
committed
tweak suggestion
1 parent 98e20c0 commit 4bf7d2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_parse/src/parser/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ impl<'a> Parser<'a> {
705705
if is_let {
706706
err.span_suggestion(
707707
non_item_span,
708-
"considering use `const` instead of `let` for associated const",
708+
"consider using `const` instead of `let` for associated const",
709709
"const",
710710
Applicability::MachineApplicable,
711711
);

src/test/ui/parser/suggest-assoc-const.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: non-item in item list
22
--> $DIR/suggest-assoc-const.rs:4:5
33
|
44
LL | let _X: i32;
5-
| ^^^ help: considering use `const` instead of `let` for associated const: `const`
5+
| ^^^ help: consider using `const` instead of `let` for associated const: `const`
66

77
error: aborting due to previous error
88

0 commit comments

Comments
 (0)