From 0474168196316c40678c5653fbc058ad17fe2066 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Wed, 2 Oct 2024 09:31:49 +0900 Subject: [PATCH] Remove outdated tip about handling division by zero (#2393) The exercise text already asks you to handle this. --- src/pattern-matching/exercise.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pattern-matching/exercise.md b/src/pattern-matching/exercise.md index faab5034..2dd12097 100644 --- a/src/pattern-matching/exercise.md +++ b/src/pattern-matching/exercise.md @@ -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}}