What does this program print?

from Strings
Rust 1.98 beginner 2 min

What does this program print?

Rust
fn main() {
    let word = "é中";

    println!("{} {}", word.len(), word.chars().count());
    println!("{:?}", word.get(0..2));
    println!("{:?}", word.get(1..2));
}
Open in playground
Report an error