mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-14 06:36:33 +02:00
Remove outdated tip about handling division by zero (#2393)
The exercise text already asks you to handle this.
This commit is contained in:
parent
0a9a01d991
commit
0474168196
@ -27,9 +27,6 @@ get the tests to pass one-by-one. You can also skip a test temporarily with
|
||||
fn test_value() { .. }
|
||||
```
|
||||
|
||||
If you finish early, try writing a test that results in division by zero or
|
||||
integer overflow. How could you handle this with `Result` instead of a panic?
|
||||
|
||||
```rust
|
||||
{{#include exercise.rs:Operation}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user