From 7d7a48b17dfb9d61b50eeced84f74e0d1f755b9c Mon Sep 17 00:00:00 2001 From: Robert Lugg Date: Wed, 21 Feb 2018 22:09:53 -0800 Subject: Added filename to top of .rs files --- error_handling/option1.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'error_handling/option1.rs') 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`! -- cgit v1.2.3