Description
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.
Metadata
Metadata
Assignees
Labels
No labels