Skip to content

Commit 8bb72cf

Browse files
committed
Add code formatting on PatVec docs
1 parent 7e9d73c commit 8bb72cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc_front/hir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ pub enum Pat_ {
439439
PatLit(P<Expr>),
440440
/// A range pattern, e.g. `1...2`
441441
PatRange(P<Expr>, P<Expr>),
442-
/// [a, b, ..i, y, z] is represented as:
443-
/// PatVec(box [a, b], Some(i), box [y, z])
442+
/// `[a, b, ..i, y, z]` is represented as:
443+
/// `PatVec(box [a, b], Some(i), box [y, z])`
444444
PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),
445445
}
446446

src/libsyntax/ast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ pub enum Pat_ {
615615
PatLit(P<Expr>),
616616
/// A range pattern, e.g. `1...2`
617617
PatRange(P<Expr>, P<Expr>),
618-
/// [a, b, ..i, y, z] is represented as:
619-
/// PatVec(box [a, b], Some(i), box [y, z])
618+
/// `[a, b, ..i, y, z]` is represented as:
619+
/// `PatVec(box [a, b], Some(i), box [y, z])`
620620
PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),
621621
/// A macro pattern; pre-expansion
622622
PatMac(Mac),

0 commit comments

Comments
 (0)