Skip to content

Commit

Permalink
Correct type annotation in comment (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
xitep authored and chriskrycho committed Aug 9, 2016
1 parent 9f079c4 commit f11b913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e017.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub fn demonstrate_match() {
// Here, if we try to reference the contents of `store` directly, we'll find
// that it doesn't work: we get a type error.
let store = DataStore::new(ref_to_four); // type: DataStore
let optional_store = Some(store); // type: Option<&DataStore>
let optional_store = Some(store); // type: Option<DataStore>
let contents = match optional_store {
Some(store) => *store.contents,
None => 0
Expand Down

0 comments on commit f11b913

Please sign in to comment.