1
0
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:
Martin Geisler 2024-10-02 09:31:49 +09:00 committed by GitHub
parent 0a9a01d991
commit 0474168196
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}}