Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Oct 26, 2024
1 parent 37b457b commit a3cf363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ We recommend that you _not_ write panicking code at all, since Rust has the idio
```rust title="Rust"
fn not_good() {
let option = get_option();
let value_a = option.unwrap();
let value_a = option.unwrap(); // This code can panic
let result = get_result();
let value_b = result.expect("This code can panic");
}
Expand Down

0 comments on commit a3cf363

Please sign in to comment.