diff --git a/src/librustc_front/hir.rs b/src/librustc_front/hir.rs index 776faef5317..88973467712 100644 --- a/src/librustc_front/hir.rs +++ b/src/librustc_front/hir.rs @@ -439,8 +439,8 @@ pub enum Pat_ { PatLit(P), /// A range pattern, e.g. `1...2` PatRange(P, P), - /// [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>, Option>, Vec>), } diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 989be60a103..6c6d1544998 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -615,8 +615,8 @@ pub enum Pat_ { PatLit(P), /// A range pattern, e.g. `1...2` PatRange(P, P), - /// [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>, Option>, Vec>), /// A macro pattern; pre-expansion PatMac(Mac),