File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ fn main() {
61
61
62
62
// This will not compile because `Structure` does not implement
63
63
// fmt::Display
64
- println!("This struct `{}` won't print...", Structure(3));
65
- // FIXME ^ Comment out this line.
64
+ // println!("This struct `{}` won't print...", Structure(3));
65
+ // TODO ^ Try uncommenting this line
66
66
67
67
// For Rust 1.58 and above, you can directly capture the argument from a
68
68
// surrounding variable. Just like the above, this will output
@@ -88,8 +88,9 @@ Implementing the `fmt::Display` trait automatically implements the
88
88
89
89
### Activities
90
90
91
- * Fix the two issues in the above code (see FIXME) so that it runs without
91
+ * Fix the issue in the above code (see FIXME) so that it runs without
92
92
error.
93
+ * Try uncommenting the line that attempts to format the ` Structure ` struct (see TODO)
93
94
* Add a ` println! ` macro call that prints: ` Pi is roughly 3.142 ` by controlling
94
95
the number of decimal places shown. For the purposes of this exercise,
95
96
use ` let pi = 3.141592 ` as an estimate for pi. (Hint: you may need to
You can’t perform that action at this time.
0 commit comments