← Back to archive

Stdle #78 · strings · 2026-08-23

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.len());
}
Strings
4 attempts left

Answer & explanation