Skip to content

Commit

Permalink
Revert to original text for has method.
Browse files Browse the repository at this point in the history
  • Loading branch information
elishamutang committed Jun 23, 2024
1 parent bbb0bd0 commit 2cbbc1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/computer_science/project_hash_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ You already know the magic behind hash maps, now it's time to write your own imp

1. `#get(key)` takes one argument as a key and returns the value that is assigned to this key. If key is not found, return `nil`.

1. `#has(key)` takes a key as an argument and returns `true` or `false` based on whether or not the key is in the hash map.
1. `#has?(key)` takes a key as an argument and returns `true` or `false` based on whether or not the key is in the hash map.

1. `#remove(key)` takes a key as an argument. If the given key is in the hash map, it should remove the entry with that key and return the deleted entry's value. If the key isn't in the hash map, it should return `nil`.

Expand Down

0 comments on commit 2cbbc1b

Please sign in to comment.