Merge pull request #77 from chapeupreto/patch-1

fix comment for is_none
pull/86/head
Dhghomon 4 years ago committed by GitHub
commit a0deb5ca4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4015,7 +4015,7 @@ fn main() {
book_hashmap.insert(1, "L'Allemagne Moderne");
if book_hashmap.get(&1).is_none() { // is_none() returns a bool: true if it's Some, false if it's None
if book_hashmap.get(&1).is_none() { // is_none() returns a bool: true if it's None, false if it's Some
book_hashmap.insert(1, "Le Petit Prince");
}

Loading…
Cancel
Save