You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the same time, the naive panic!(err) attempt will lead to a compiler error that will spit out the correct solution:
error: format argument must be a string literal
--> src/main.rs:3:12
|
3 | panic!(error);
| ^
|
help: you might be missing a string literal to format with
|
3 | panic!("{}", error);
| +++++
Since we explicitly talk about interpolation two exercises down the line, I think it's a fine balance to strike.
For the Unwrap exercise string interpolation is needed.
Correct me if I'm wrong, but I don't think it's covered at that point.
The text was updated successfully, but these errors were encountered: