Skip to content

Commit 6307719

Browse files
committed
Auto merge of #29501 - Manishearth:pat-docs, r=alexcrichton
None
2 parents af6e413 + 8bb72cf commit 6307719

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/librustc_front/hir.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ pub enum Pat_ {
407407
/// set (of "PatIdents that refer to nullary enums")
408408
PatIdent(BindingMode, Spanned<Ident>, Option<P<Pat>>),
409409

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

413413
/// An associated const named using the qualified path `<T>::CONST` or
@@ -429,8 +429,8 @@ pub enum Pat_ {
429429
PatLit(P<Expr>),
430430
/// A range pattern, e.g. `1...2`
431431
PatRange(P<Expr>, P<Expr>),
432-
/// [a, b, ..i, y, z] is represented as:
433-
/// PatVec(box [a, b], Some(i), box [y, z])
432+
/// `[a, b, ..i, y, z]` is represented as:
433+
/// `PatVec(box [a, b], Some(i), box [y, z])`
434434
PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),
435435
}
436436

src/libsyntax/ast.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ pub enum Pat_ {
583583
/// set (of "PatIdents that refer to nullary enums")
584584
PatIdent(BindingMode, SpannedIdent, Option<P<Pat>>),
585585

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

589589
/// An associated const named using the qualified path `<T>::CONST` or
@@ -605,8 +605,8 @@ pub enum Pat_ {
605605
PatLit(P<Expr>),
606606
/// A range pattern, e.g. `1...2`
607607
PatRange(P<Expr>, P<Expr>),
608-
/// [a, b, ..i, y, z] is represented as:
609-
/// PatVec(box [a, b], Some(i), box [y, z])
608+
/// `[a, b, ..i, y, z]` is represented as:
609+
/// `PatVec(box [a, b], Some(i), box [y, z])`
610610
PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),
611611
/// A macro pattern; pre-expansion
612612
PatMac(Mac),

0 commit comments

Comments
 (0)