We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a1df9e + fe541b1 commit 249ca83Copy full SHA for 249ca83
src/librustc_front/hir.rs
@@ -737,7 +737,7 @@ pub enum Expr_ {
737
ExprBinary(BinOp, P<Expr>, P<Expr>),
738
/// A unary operation (For example: `!x`, `*x`)
739
ExprUnary(UnOp, P<Expr>),
740
- /// A literal (For example: `1u8`, `"foo"`)
+ /// A literal (For example: `1`, `"foo"`)
741
ExprLit(P<Lit>),
742
/// A cast (`foo as f64`)
743
ExprCast(P<Expr>, P<Ty>),
@@ -804,7 +804,7 @@ pub enum Expr_ {
804
805
/// A vector literal constructed from one repeated element.
806
///
807
- /// For example, `[1u8; 5]`. The first expression is the element
+ /// For example, `[1; 5]`. The first expression is the element
808
/// to be repeated; the second is the number of times to repeat it.
809
ExprRepeat(P<Expr>, P<Expr>),
810
}
0 commit comments