Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 20
What does this print or do?
let s = "héllo"; let t = &s[0..2]; println!("{t}");
A
Prints hé
B
Prints h
C
Compile error
D
Panics: byte index 2 is not a char boundary ('é' is 2 bytes)