Skip to content

Commit

Permalink
Add code formatting on PatVec docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 1, 2015
1 parent 7e9d73c commit 8bb72cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/librustc_front/hir.rs
Expand Up @@ -439,8 +439,8 @@ pub enum Pat_ {
PatLit(P<Expr>),
/// A range pattern, e.g. `1...2`
PatRange(P<Expr>, P<Expr>),
/// [a, b, ..i, y, z] is represented as:
/// PatVec(box [a, b], Some(i), box [y, z])
/// `[a, b, ..i, y, z]` is represented as:
/// `PatVec(box [a, b], Some(i), box [y, z])`
PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),
}

Expand Down
4 changes: 2 additions & 2 deletions src/libsyntax/ast.rs
Expand Up @@ -615,8 +615,8 @@ pub enum Pat_ {
PatLit(P<Expr>),
/// A range pattern, e.g. `1...2`
PatRange(P<Expr>, P<Expr>),
/// [a, b, ..i, y, z] is represented as:
/// PatVec(box [a, b], Some(i), box [y, z])
/// `[a, b, ..i, y, z]` is represented as:
/// `PatVec(box [a, b], Some(i), box [y, z])`
PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),
/// A macro pattern; pre-expansion
PatMac(Mac),
Expand Down

0 comments on commit 8bb72cf

Please sign in to comment.