Skip to content

Commit e65c96e

Browse files
committed
Tweak comments.
1 parent ae238ef commit e65c96e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_builtin_macros/src/format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use expand::expand_parsed_format_args;
2626
// 3. Finally, `expand_parsed_format_args` will turn that `FormatArgs` structure
2727
// into the expression that the macro expands to.
2828

29-
// See format/ast.rs forthe FormatArgs structure.
29+
// See format/ast.rs for the FormatArgs structure and glossary.
3030

3131
// Only used in parse_args and report_invalid_references,
3232
// to indicate how a referred argument was used.

compiler/rustc_builtin_macros/src/format/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub struct FormatArgPosition {
9696

9797
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
9898
pub enum FormatArgPositionKind {
99-
/// `{}` or `{.*}`
99+
/// `{}` or `{:.*}`
100100
Implicit,
101101
/// `{1}` or `{:1$}` or `{:.1$}`
102102
Number,

0 commit comments

Comments
 (0)