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 @@ -636,16 +636,16 @@ impl Pat {
636
636
}
637
637
}
638
638
639
- /// A single field in a struct pattern
639
+ /// A single field in a struct pattern.
640
640
///
641
- /// Patterns like the fields of Foo ` { x, ref y, ref mut z }`
642
- /// are treated the same as` x: x, y: ref y, z: ref mut z`,
643
- /// except is_shorthand is true
641
+ /// Patterns like the fields of ` Foo { x, ref y, ref mut z }`
642
+ /// are treated the same as ` x: x, y: ref y, z: ref mut z`,
643
+ /// except when ` is_shorthand` is true.
644
644
#[ derive( Clone , Encodable , Decodable , Debug ) ]
645
645
pub struct FieldPat {
646
- /// The identifier for the field
646
+ /// The identifier for the field.
647
647
pub ident : Ident ,
648
- /// The pattern the field is destructured to
648
+ /// The pattern the field is destructured to.
649
649
pub pat : P < Pat > ,
650
650
pub is_shorthand : bool ,
651
651
pub attrs : AttrVec ,
You can’t perform that action at this time.
0 commit comments