summaryrefslogtreecommitdiff
path: root/exercises/option/option1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/option/option1.rs')
-rw-r--r--exercises/option/option1.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/exercises/option/option1.rs b/exercises/option/option1.rs
deleted file mode 100644
index 17cf4f6..0000000
--- a/exercises/option/option1.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-// option1.rs
-// Make me compile! Execute `rustlings hint option1` for hints
-
-// I AM NOT DONE
-
-// you can modify anything EXCEPT for this function's signature
-fn print_number(maybe_number: Option<u16>) {
- println!("printing: {}", maybe_number.unwrap());
-}
-
-fn main() {
- print_number(13);
- print_number(99);
-
- let mut numbers: [Option<u16>; 5];
- for iter in 0..5 {
- let number_to_add: u16 = {
- ((iter * 1235) + 2) / (4 * 16)
- };
-
- numbers[iter as usize] = number_to_add;
- }
-}