File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -927,7 +927,7 @@ pub enum ExprKind {
927927 Binary ( BinOp , P < Expr > , P < Expr > ) ,
928928 /// A unary operation (For example: `!x`, `*x`)
929929 Unary ( UnOp , P < Expr > ) ,
930- /// A literal (For example: `1u8 `, `"foo"`)
930+ /// A literal (For example: `1 `, `"foo"`)
931931 Lit ( P < Lit > ) ,
932932 /// A cast (`foo as f64`)
933933 Cast ( P < Expr > , P < Ty > ) ,
@@ -1016,7 +1016,7 @@ pub enum ExprKind {
10161016
10171017 /// An array literal constructed from one repeated element.
10181018 ///
1019- /// For example, `[1u8 ; 5]`. The first expression is the element
1019+ /// For example, `[1 ; 5]`. The first expression is the element
10201020 /// to be repeated; the second is the number of times to repeat it.
10211021 Repeat ( P < Expr > , P < Expr > ) ,
10221022
@@ -1288,7 +1288,7 @@ pub enum LitKind {
12881288 Byte ( u8 ) ,
12891289 /// A character literal (`'a'`)
12901290 Char ( char ) ,
1291- /// An integer literal (`1u8 `)
1291+ /// An integer literal (`1 `)
12921292 Int ( u64 , LitIntType ) ,
12931293 /// A float literal (`1f64` or `1E10f64`)
12941294 Float ( InternedString , FloatTy ) ,
Original file line number Diff line number Diff line change @@ -168,8 +168,8 @@ pub fn mk_printer<'a>(out: Box<io::Write+'a>, linewidth: usize) -> Printer<'a> {
168168 let n: usize = 3 * linewidth;
169169 debug ! ( "mk_printer {}" , linewidth) ;
170170 let token = vec ! [ Token :: Eof ; n] ;
171- let size = vec ! [ 0_isize ; n] ;
172- let scan_stack = vec ! [ 0_usize ; n] ;
171+ let size = vec ! [ 0 ; n] ;
172+ let scan_stack = vec ! [ 0 ; n] ;
173173 Printer {
174174 out : out,
175175 buf_len : n,
You can’t perform that action at this time.
0 commit comments