We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af6e413 + 8bb72cf commit 6307719Copy full SHA for 6307719
src/librustc_front/hir.rs
@@ -407,7 +407,7 @@ pub enum Pat_ {
407
/// set (of "PatIdents that refer to nullary enums")
408
PatIdent(BindingMode, Spanned<Ident>, Option<P<Pat>>),
409
410
- /// "None" means a * pattern where we don't bind the fields to names.
+ /// "None" means a `Variant(..)` pattern where we don't bind the fields to names.
411
PatEnum(Path, Option<Vec<P<Pat>>>),
412
413
/// An associated const named using the qualified path `<T>::CONST` or
@@ -429,8 +429,8 @@ pub enum Pat_ {
429
PatLit(P<Expr>),
430
/// A range pattern, e.g. `1...2`
431
PatRange(P<Expr>, P<Expr>),
432
- /// [a, b, ..i, y, z] is represented as:
433
- /// PatVec(box [a, b], Some(i), box [y, z])
+ /// `[a, b, ..i, y, z]` is represented as:
+ /// `PatVec(box [a, b], Some(i), box [y, z])`
434
PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),
435
}
436
src/libsyntax/ast.rs
@@ -583,7 +583,7 @@ pub enum Pat_ {
583
584
PatIdent(BindingMode, SpannedIdent, Option<P<Pat>>),
585
586
587
588
589
@@ -605,8 +605,8 @@ pub enum Pat_ {
605
606
607
608
609
610
611
/// A macro pattern; pre-expansion
612
PatMac(Mac),
0 commit comments