summaryrefslogtreecommitdiff
path: root/exercises/error_handling/result1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/error_handling/result1.rs')
-rw-r--r--exercises/error_handling/result1.rs21
1 files changed, 1 insertions, 20 deletions
diff --git a/exercises/error_handling/result1.rs b/exercises/error_handling/result1.rs
index f9596e2..c3f2d6e 100644
--- a/exercises/error_handling/result1.rs
+++ b/exercises/error_handling/result1.rs
@@ -1,5 +1,5 @@
// result1.rs
-// Make this test pass! Scroll down for hints :)
+// Make this test pass! Execute `rustlings hint option2` for hints :)
#[derive(PartialEq, Debug)]
struct PositiveNonzeroInteger(u64);
@@ -25,22 +25,3 @@ fn test_creation() {
);
assert_eq!(Err(CreationError::Zero), PositiveNonzeroInteger::new(0));
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// `PositiveNonzeroInteger::new` is always creating a new instance and returning an `Ok` result.
-// It should be doing some checking, returning an `Err` result if those checks fail, and only
-// returning an `Ok` result if those checks determine that everything is... okay :)