diff options
| author | pierwill <pierwill@users.noreply.github.com> | 2020-12-17 11:39:39 -0800 |
|---|---|---|
| committer | pierwill <pierwill@users.noreply.github.com> | 2020-12-17 11:39:39 -0800 |
| commit | 613cc9bb45a35949ca0df5ba5139b986e31ca673 (patch) | |
| tree | 666cb578435bb7d58f49a3637b9a357be1c6df48 /compiler | |
| parent | 2ba7ca2bbbff6cd424aebc654308febc00b9497a (diff) | |
| download | rust-613cc9bb45a35949ca0df5ba5139b986e31ca673.tar.gz rust-613cc9bb45a35949ca0df5ba5139b986e31ca673.zip | |
Edit rustc_ast::ast::FieldPat docs
Punctuation fixes.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 220bbed7e78..20f98d39096 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -636,16 +636,16 @@ impl Pat { } } -/// A single field in a struct pattern +/// A single field in a struct pattern. /// -/// Patterns like the fields of Foo `{ x, ref y, ref mut z }` -/// are treated the same as` x: x, y: ref y, z: ref mut z`, -/// except is_shorthand is true +/// Patterns like the fields of `Foo { x, ref y, ref mut z }` +/// are treated the same as `x: x, y: ref y, z: ref mut z`, +/// except when `is_shorthand` is true. #[derive(Clone, Encodable, Decodable, Debug)] pub struct FieldPat { - /// The identifier for the field + /// The identifier for the field. pub ident: Ident, - /// The pattern the field is destructured to + /// The pattern the field is destructured to. pub pat: P<Pat>, pub is_shorthand: bool, pub attrs: AttrVec, |
