diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs index 8e4da7923fcb5..c938f073a8e94 100644 --- a/compiler/rustc_parse_format/src/lib.rs +++ b/compiler/rustc_parse_format/src/lib.rs @@ -858,9 +858,12 @@ impl<'input> Parser<'input> { self.errors.insert( 0, ParseError { - description: "expected format parameter to occur after `:`".to_owned(), - note: None, - label: format!("expected `{}` to occur after `:`", alignment), + description: "expected format parameter to occur in its right place".to_owned(), + note: Some( + "See https://doc.rust-lang.org/std/fmt/index.html#syntax for more details" + .to_owned(), + ), + label: format!("expected `{}` to occur in its right place", alignment), span: range, secondary_label: None, suggestion: Suggestion::None,