File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -630,16 +630,16 @@ impl Pat {
630
630
}
631
631
}
632
632
633
- /// A single field in a struct pattern
633
+ /// A single field in a struct pattern.
634
634
///
635
- /// Patterns like the fields of Foo ` { x, ref y, ref mut z }`
636
- /// are treated the same as` x: x, y: ref y, z: ref mut z`,
637
- /// except is_shorthand is true
635
+ /// Patterns like the fields of ` Foo { x, ref y, ref mut z }`
636
+ /// are treated the same as ` x: x, y: ref y, z: ref mut z`,
637
+ /// except when ` is_shorthand` is true.
638
638
#[ derive( Clone , Encodable , Decodable , Debug ) ]
639
639
pub struct FieldPat {
640
- /// The identifier for the field
640
+ /// The identifier for the field.
641
641
pub ident : Ident ,
642
- /// The pattern the field is destructured to
642
+ /// The pattern the field is destructured to.
643
643
pub pat : P < Pat > ,
644
644
pub is_shorthand : bool ,
645
645
pub attrs : AttrVec ,
You can’t perform that action at this time.
0 commit comments