diff options
| author | Robert Lugg <robert.lugg@gmail.com> | 2018-02-21 22:09:53 -0800 |
|---|---|---|
| committer | Robert Lugg <robert.lugg@gmail.com> | 2018-02-21 22:09:53 -0800 |
| commit | 7d7a48b17dfb9d61b50eeced84f74e0d1f755b9c (patch) | |
| tree | 30e9ef080ed6c31e5f6c12711d5fd1baf8ef404d /error_handling/option1.rs | |
| parent | c4b32528457063b0b97da37617c2a9ff652a4cba (diff) | |
Added filename to top of .rs files
Diffstat (limited to 'error_handling/option1.rs')
| -rw-r--r-- | error_handling/option1.rs | 1 |
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`! |
