Added filename to top of .rs files

This commit is contained in:
Robert Lugg
2018-02-21 22:09:53 -08:00
parent c4b3252845
commit 7d7a48b17d
48 changed files with 50 additions and 0 deletions

View File

@@ -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`!