Skip to content

Commit 613cc9b

Browse files
committed
Edit rustc_ast::ast::FieldPat docs
Punctuation fixes.
1 parent 2ba7ca2 commit 613cc9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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)]
645645
pub 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,

0 commit comments

Comments
 (0)