diff --git a/src/librustc_front/hir.rs b/src/librustc_front/hir.rs index ece62364376fc..cc7c0f7865ea5 100644 --- a/src/librustc_front/hir.rs +++ b/src/librustc_front/hir.rs @@ -737,7 +737,7 @@ pub enum Expr_ { ExprBinary(BinOp, P, P), /// A unary operation (For example: `!x`, `*x`) ExprUnary(UnOp, P), - /// A literal (For example: `1u8`, `"foo"`) + /// A literal (For example: `1`, `"foo"`) ExprLit(P), /// A cast (`foo as f64`) ExprCast(P, P), @@ -804,7 +804,7 @@ pub enum Expr_ { /// A vector literal constructed from one repeated element. /// - /// For example, `[1u8; 5]`. The first expression is the element + /// For example, `[1; 5]`. The first expression is the element /// to be repeated; the second is the number of times to repeat it. ExprRepeat(P, P), }