summaryrefslogtreecommitdiff
path: root/error_handling/option1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'error_handling/option1.rs')
-rw-r--r--error_handling/option1.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/error_handling/option1.rs b/error_handling/option1.rs
index 5f96184..9cf0bc9 100644
--- a/error_handling/option1.rs
+++ b/error_handling/option1.rs
@@ -1,3 +1,4 @@
+// option1.rs
// This example panics because the second time it calls `pop`, the `vec`
// is empty, so `pop` returns `None`, and `unwrap` panics if it's called
// on `None`. Handle this in a more graceful way than calling `unwrap`!