Skip to content

Commit e3a7cc3

Browse files
chenyukangestebank
andauthored
Update compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs
Co-authored-by: Esteban Kuber <[email protected]>
1 parent 9b9b891 commit e3a7cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
791791
ExprKind::Path(..) | ExprKind::Lit(_) if parent_is_closure => {
792792
err.span_suggestion(
793793
expression.span.shrink_to_lo(),
794-
"consider ignore the value here",
794+
"consider ignoring the value",
795795
"_ = ",
796796
if in_external_macro(self.tcx.sess, expression.span) {
797797
Applicability::MaybeIncorrect

0 commit comments

Comments
 (0)