Skip to content

Commit 7e9d73c

Browse files
committed
Fix PatEnum docs
1 parent a5fbb3a commit 7e9d73c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_front/hir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ pub enum Pat_ {
417417
/// set (of "PatIdents that refer to nullary enums")
418418
PatIdent(BindingMode, Spanned<Ident>, Option<P<Pat>>),
419419

420-
/// "None" means a * pattern where we don't bind the fields to names.
420+
/// "None" means a `Variant(..)` pattern where we don't bind the fields to names.
421421
PatEnum(Path, Option<Vec<P<Pat>>>),
422422

423423
/// An associated const named using the qualified path `<T>::CONST` or

src/libsyntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ pub enum Pat_ {
593593
/// set (of "PatIdents that refer to nullary enums")
594594
PatIdent(BindingMode, SpannedIdent, Option<P<Pat>>),
595595

596-
/// "None" means a * pattern where we don't bind the fields to names.
596+
/// "None" means a `Variant(..)` pattern where we don't bind the fields to names.
597597
PatEnum(Path, Option<Vec<P<Pat>>>),
598598

599599
/// An associated const named using the qualified path `<T>::CONST` or

0 commit comments

Comments
 (0)