Skip to content

Commit 3d7cdf6

Browse files
authored
Rollup merge of #80128 - pierwill:pierwill-docs-fieldpat, r=jyn514
Edit rustc_ast::ast::FieldPat docs Punctuation fixes.
2 parents 9cf2438 + 613cc9b commit 3d7cdf6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/rustc_ast/src/ast.rs

+6-6
Original file line numberDiff line numberDiff 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)]
639639
pub 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,

0 commit comments

Comments
 (0)