← Back to archive

Stdle #177 · strings · 2026-11-30

What does this Rust snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

fn main() {
let s = "héllo";
println!("{}", s.chars().count());
}
Strings
4 attempts left

Answer & explanation