We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfbfd64 + 8b8b9c5 commit 5020979Copy full SHA for 5020979
src/hello/print/fmt.md
@@ -49,17 +49,17 @@ fn main() {
49
City { name: "Dublin", lat: 53.347778, lon: -6.259722 },
50
City { name: "Oslo", lat: 59.95, lon: 10.75 },
51
City { name: "Vancouver", lat: 49.25, lon: -123.1 },
52
- ].iter() {
53
- println!("{}", *city);
+ ] {
+ println!("{}", city);
54
}
55
for color in [
56
Color { red: 128, green: 255, blue: 90 },
57
Color { red: 0, green: 3, blue: 254 },
58
Color { red: 0, green: 0, blue: 0 },
59
60
// Switch this to use {} once you've added an implementation
61
// for fmt::Display.
62
- println!("{:?}", *color);
+ println!("{:?}", color);
63
64
65
```
0 commit comments