Skip to content

Commit 78f836e

Browse files
authored
Merge pull request #1513 from dralley/add-dictionary
Add 'dictionary' as an alternate name example for HashMap
2 parents 37dd0a4 + 06d6b67 commit 78f836e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2018-edition/src/ch08-03-hash-maps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ The last of our common collections is the *hash map*. The type `HashMap<K, V>`
44
stores a mapping of keys of type `K` to values of type `V`. It does this via a
55
*hashing function*, which determines how it places these keys and values into
66
memory. Many programming languages support this kind of data structure, but
7-
they often use a different name, such as hash, map, object, hash table, or
8-
associative array, just to name a few.
7+
they often use a different name, such as hash, map, object, hash table,
8+
dictionary, or associative array, just to name a few.
99

1010
Hash maps are useful when you want to look up data not by using an index, as
1111
you can with vectors, but by using a key that can be of any type. For example,

0 commit comments

Comments
 (0)