Skip to content

Commit a46463d

Browse files
committed
syntax: promote a comment on PatEnum into a docstring
1 parent 4d472ff commit a46463d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libsyntax/ast.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,10 @@ pub enum Pat_ {
334334
/// records this pattern's NodeId in an auxiliary
335335
/// set (of "PatIdents that refer to nullary enums")
336336
PatIdent(BindingMode, SpannedIdent, Option<Gc<Pat>>),
337-
PatEnum(Path, Option<Vec<Gc<Pat>>>), /* "none" means a * pattern where
338-
* we don't bind the fields to names */
337+
338+
/// "None" means a * pattern where we don't bind the fields to names.
339+
PatEnum(Path, Option<Vec<Gc<Pat>>>),
340+
339341
PatStruct(Path, Vec<FieldPat>, bool),
340342
PatTup(Vec<Gc<Pat>>),
341343
PatBox(Gc<Pat>),

0 commit comments

Comments
 (0)