Skip to content

Commit 1905769

Browse files
authored
Clarify map key ordering functionality in docs (#13764)
1 parent 00f8b1e commit 1905769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/getting-started/keywords-and-maps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ nil
149149
Compared to keyword lists, we can already see two differences:
150150

151151
* Maps allow any value as a key.
152-
* Maps' keys do not follow any ordering.
152+
* Maps have their own internal ordering, which is not guaranteed to be the same across different maps, even if they have the same keys
153153

154154
In contrast to keyword lists, maps are very useful with pattern matching. When a map is used in a pattern, it will always match on a subset of the given value:
155155

0 commit comments

Comments
 (0)