about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/stmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs
index 391a4777bd9..620ba4a3cb3 100644
--- a/compiler/rustc_parse/src/parser/stmt.rs
+++ b/compiler/rustc_parse/src/parser/stmt.rs
@@ -578,7 +578,7 @@ impl<'a> Parser<'a> {
                             // this only when parsing an index expression.
                             err.span_suggestion_verbose(
                                 self.token.span,
-                                "you might have meant to make a slice with range index",
+                                "you might have meant a range expression",
                                 "..",
                                 Applicability::MaybeIncorrect,
                             );