diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs index 42a413210c7..7228b270698 100644 --- a/compiler/rustc_builtin_macros/src/format.rs +++ b/compiler/rustc_builtin_macros/src/format.rs @@ -26,7 +26,7 @@ use expand::expand_parsed_format_args; // 3. Finally, `expand_parsed_format_args` will turn that `FormatArgs` structure // into the expression that the macro expands to. -// See format/ast.rs forthe FormatArgs structure. +// See format/ast.rs for the FormatArgs structure and glossary. // Only used in parse_args and report_invalid_references, // to indicate how a referred argument was used. diff --git a/compiler/rustc_builtin_macros/src/format/ast.rs b/compiler/rustc_builtin_macros/src/format/ast.rs index cc0a3b0b244..cb76482fe53 100644 --- a/compiler/rustc_builtin_macros/src/format/ast.rs +++ b/compiler/rustc_builtin_macros/src/format/ast.rs @@ -96,7 +96,7 @@ pub struct FormatArgPosition { #[derive(Copy, Clone, Debug, PartialEq, Eq)] pub enum FormatArgPositionKind { - /// `{}` or `{.*}` + /// `{}` or `{:.*}` Implicit, /// `{1}` or `{:1$}` or `{:.1$}` Number,