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
In example of Option and Unwrap Running code will generate this output:
Compiling playground v0.0.1 (/playground)
Finished dev [unoptimized + debuginfo] target(s) in 0.58s
Running `target/debug/playground`
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:16:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
water? How nice.
Yuck! Too sugary.
No drink? Oh well.
I love coffees!!!!!
Although comments in // `unwrap` returns a `panic` when it receives a `None`. tells which part is panicking. It will be nice to add line numbers for editable sections of code.