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