@@ -238,7 +238,7 @@ defmodule Kernel do
238
238
When comparing two numbers of different types (a number being either
239
239
an integer or a float), a conversion to the type with greater precision
240
240
will always occur, unless the comparison operator used is either `===/2`
241
- or `!==`. A float will be considered more precise than an integer, unless
241
+ or `!==/2 `. A float will be considered more precise than an integer, unless
242
242
the float is greater/less than +/-9007199254740992.0 respectively,
243
243
at which point all the significant figures of the float are to the left
244
244
of the decimal point. This behavior exists so that the comparison of large
@@ -247,9 +247,7 @@ defmodule Kernel do
247
247
The collection types are compared using the following rules:
248
248
249
249
* Tuples are compared by size, then element by element.
250
- * Maps are compared by size, then by keys in ascending term order,
251
- then by values in key order. In the specific case of maps' key
252
- ordering, integers are always considered to be less than floats.
250
+ * Maps are compared by size, then by key-value pairs.
253
251
* Lists are compared element by element.
254
252
* Bitstrings are compared byte by byte, incomplete bytes are compared bit by bit.
255
253
* Atoms are compared using their string value, codepoint by codepoint.
0 commit comments