Skip to content

Commit 6b05354

Browse files
authored
Merge pull request #512 from tankorsmash/patch-2
Tweak wording on map description
2 parents e4de83a + 8ce072a commit 6b05354

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/primitive/defs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,7 +2186,7 @@ primitive!(
21862186
/// ex: ↧5 ∞
21872187
/// ex: ↥5 ∞
21882188
(0, Infinity, Constant, ("infinity", '∞')),
2189-
/// Create a hashmap from lists of keys and values
2189+
/// Create a hashmap from a list of keys and list values
21902190
///
21912191
/// A hashmap is a normal array that is used as a mapping from keys to values.
21922192
/// The related map functions [insert], [has], and [get], all treat the array as an actual hashmap, so they have O(1) amortized time complexity.
@@ -2200,10 +2200,10 @@ primitive!(
22002200
/// Use [insert] to insert additional key-value pairs.
22012201
/// ex: map 1_2 3_4
22022202
/// : insert 5 6
2203-
/// An empty array can be used as an empty map, even if it was not created with [map].
2203+
/// An empty array can be used as an empty map, event if it was not created with [map].
22042204
/// ex: has 5 []
22052205
/// : insert 1 2 []
2206-
/// You can use [un][map] to get the keys and values back.
2206+
/// You can use [un][map] to get the keys list and values list back.
22072207
/// ex: []
22082208
/// : insert 1 2_3
22092209
/// : insert 4 5_6

0 commit comments

Comments
 (0)