about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
diff options
context:
space:
mode:
authorHirochika Matsumoto <hirochika.k.matsumoto@gmail.com>2023-11-27 22:18:03 +0900
committerHirochika Matsumoto <hirochika.k.matsumoto@gmail.com>2023-11-27 22:18:03 +0900
commitacec70de9b0b76cb5b077b030360fa217ccdcdec (patch)
tree5cb1c4c0d63bdf0393d18e578d8c6743f774c3ed /compiler/rustc_parse/src/parser/stmt.rs
parent730d299354f7ef09d8e30609110fc499e0e22d71 (diff)
downloadrust-acec70de9b0b76cb5b077b030360fa217ccdcdec.tar.gz
rust-acec70de9b0b76cb5b077b030360fa217ccdcdec.zip
Change help message to make some sense in broader context
Diffstat (limited to 'compiler/rustc_parse/src/parser/stmt.rs')
-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,
                             );