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 @@ -630,16 +630,16 @@ impl Pat {
630630 }
631631}
632632
633- /// A single field in a struct pattern
633+ /// A single field in a struct pattern.
634634///
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.
638638#[ derive( Clone , Encodable , Decodable , Debug ) ]
639639pub struct FieldPat {
640- /// The identifier for the field
640+ /// The identifier for the field.
641641 pub ident : Ident ,
642- /// The pattern the field is destructured to
642+ /// The pattern the field is destructured to.
643643 pub pat : P < Pat > ,
644644 pub is_shorthand : bool ,
645645 pub attrs : AttrVec ,
You can’t perform that action at this time.
0 commit comments