summaryrefslogtreecommitdiff
path: root/exercises/error_handling
diff options
context:
space:
mode:
authormarisa <mokou@posteo.de>2019-11-11 17:21:06 +0100
committerGitHub <noreply@github.com>2019-11-11 17:21:06 +0100
commitec2d4bd3ee665f2a4c79dd42c41078223074d4c1 (patch)
tree6106b922559491112240f6465f965cf811caf5b8 /exercises/error_handling
parentce9fa6ebbfdc3e7585d488d9409797285708316f (diff)
parent9a9007abae86c3b1b1c09778a6544ced54ea4453 (diff)
Merge branch 'master' into refactor-hints
Diffstat (limited to 'exercises/error_handling')
-rw-r--r--exercises/error_handling/errors1.rs2
-rw-r--r--exercises/error_handling/errors2.rs2
-rw-r--r--exercises/error_handling/errors3.rs2
-rw-r--r--exercises/error_handling/errorsn.rs2
-rw-r--r--exercises/error_handling/option1.rs2
-rw-r--r--exercises/error_handling/result1.rs2
6 files changed, 12 insertions, 0 deletions
diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs
index f585e29..9c24d85 100644
--- a/exercises/error_handling/errors1.rs
+++ b/exercises/error_handling/errors1.rs
@@ -6,6 +6,8 @@
// this function to have.
// Execute `rustlings hint errors1` for hints!
+// I AM NOT DONE
+
pub fn generate_nametag_text(name: String) -> Option<String> {
if name.len() > 0 {
Some(format!("Hi! My name is {}", name))
diff --git a/exercises/error_handling/errors2.rs b/exercises/error_handling/errors2.rs
index 5ac6339..aad3a93 100644
--- a/exercises/error_handling/errors2.rs
+++ b/exercises/error_handling/errors2.rs
@@ -16,6 +16,8 @@
// There are at least two ways to implement this that are both correct-- but
// one is a lot shorter! Execute `rustlings hint errors2` for hints to both ways.
+// I AM NOT DONE
+
use std::num::ParseIntError;
pub fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> {
diff --git a/exercises/error_handling/errors3.rs b/exercises/error_handling/errors3.rs
index d9ec133..460ac5c 100644
--- a/exercises/error_handling/errors3.rs
+++ b/exercises/error_handling/errors3.rs
@@ -4,6 +4,8 @@
// Why not? What should we do to fix it?
// Execute `rustlings hint errors3` for hints!
+// I AM NOT DONE
+
use std::num::ParseIntError;
fn main() {
diff --git a/exercises/error_handling/errorsn.rs b/exercises/error_handling/errorsn.rs
index 2f3566b..fc25308 100644
--- a/exercises/error_handling/errorsn.rs
+++ b/exercises/error_handling/errorsn.rs
@@ -15,6 +15,8 @@
//
// Execute `rustlings hint errors4` for hints :)
+// I AM NOT DONE
+
use std::error;
use std::fmt;
use std::io;
diff --git a/exercises/error_handling/option1.rs b/exercises/error_handling/option1.rs
index e334e93..5d81b15 100644
--- a/exercises/error_handling/option1.rs
+++ b/exercises/error_handling/option1.rs
@@ -4,6 +4,8 @@
// on `None`. Handle this in a more graceful way than calling `unwrap`!
// Execute `rustlings hint option1` for hints :)
+// I AM NOT DONE
+
pub fn pop_too_much() -> bool {
let mut list = vec![3];
diff --git a/exercises/error_handling/result1.rs b/exercises/error_handling/result1.rs
index c3f2d6e..352a6c2 100644
--- a/exercises/error_handling/result1.rs
+++ b/exercises/error_handling/result1.rs
@@ -1,6 +1,8 @@
// result1.rs
// Make this test pass! Execute `rustlings hint option2` for hints :)
+// I AM NOT DONE
+
#[derive(PartialEq, Debug)]
struct PositiveNonzeroInteger(u64);