Skip to content

Commit 13b9a16

Browse files
committed
Properly print u suffix for uint literals
Issue #1532
1 parent b391542 commit 13b9a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/syntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn int_ty_max(t: int_ty) -> u64 {
126126

127127
fn uint_ty_to_str(t: uint_ty) -> str {
128128
alt t {
129-
ty_u. { "" } ty_u8. { "u8" } ty_u16. { "u16" }
129+
ty_u. { "u" } ty_u8. { "u8" } ty_u16. { "u16" }
130130
ty_u32. { "u32" } ty_u64. { "u64" }
131131
}
132132
}

0 commit comments

Comments
 (0)