summaryrefslogtreecommitdiffstats
path: root/src/doc/book/src/ch08-02-strings.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/doc/book/src/ch08-02-strings.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/src/ch08-02-strings.md b/src/doc/book/src/ch08-02-strings.md
index bf79c3925..9663d36ab 100644
--- a/src/doc/book/src/ch08-02-strings.md
+++ b/src/doc/book/src/ch08-02-strings.md
@@ -355,7 +355,7 @@ of type `char`, and you can iterate over the result to access each element:
```rust
for c in "Зд".chars() {
- println!("{}", c);
+ println!("{c}");
}
```
@@ -371,7 +371,7 @@ appropriate for your domain:
```rust
for b in "Зд".bytes() {
- println!("{}", b);
+ println!("{b}");
}
```