diff --git a/src/std/string.md b/src/std/string.md index 3d19d446..252db373 100644 --- a/src/std/string.md +++ b/src/std/string.md @@ -15,7 +15,7 @@ fn main() { let s3 = String::from("🇨🇭"); println!("s3: len = {}, number of chars = {}", s3.len(), - s3.chars().collect::>().len()); + s3.chars().count()); } ```