Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
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