Skip to content

Commit 9783fec

Browse files
committed
Use display formatting instead of debug formatting
1 parent ae63e0e commit 9783fec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ fn main() {
3232

3333
match token.kind {
3434
TokenKind::Eof => {
35-
println!("{:?}", token);
36-
break;
35+
println!("Token: {:?}, literal: '{}' ", token.kind, token.literal);
36+
break;
3737
},
3838
_ => {
39-
println!("{:?}", token)
39+
println!("Token: {:?}, literal: '{}' ", token.kind, token.literal);
4040
},
4141
}
4242
}

0 commit comments

Comments
 (0)