File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -636,16 +636,16 @@ impl Pat {
636636 }
637637}
638638
639- /// A single field in a struct pattern
639+ /// A single field in a struct pattern.
640640///
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.
644644#[ derive( Clone , Encodable , Decodable , Debug ) ]
645645pub struct FieldPat {
646- /// The identifier for the field
646+ /// The identifier for the field.
647647 pub ident : Ident ,
648- /// The pattern the field is destructured to
648+ /// The pattern the field is destructured to.
649649 pub pat : P < Pat > ,
650650 pub is_shorthand : bool ,
651651 pub attrs : AttrVec ,
You can’t perform that action at this time.
0 commit comments