aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-08-09 09:28:48 +0200
committerIngela Anderton Andin <[email protected]>2018-08-09 09:28:48 +0200
commit2c19a6010e9576e1979216863b5f63ebe302bf69 (patch)
treea6b127e3647ecd67a19e55ade547f4d199349d91 /system
parentd3eebb798cd0aac25f3b66e98aca3a0340017479 (diff)
parentca9f2fe073b587e70b5502c87be3eca6f72ddd57 (diff)
downloadotp-2c19a6010e9576e1979216863b5f63ebe302bf69.tar.gz
otp-2c19a6010e9576e1979216863b5f63ebe302bf69.tar.bz2
otp-2c19a6010e9576e1979216863b5f63ebe302bf69.zip
Merge branch 'maint'
Diffstat (limited to 'system')
-rw-r--r--system/doc/reference_manual/expressions.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml
index 7eaa575f80..8bd4412762 100644
--- a/system/doc/reference_manual/expressions.xml
+++ b/system/doc/reference_manual/expressions.xml
@@ -567,6 +567,10 @@ Expr1 <input>op</input> Expr2</pre>
order is defined:</p>
<pre>
number &lt; atom &lt; reference &lt; fun &lt; port &lt; pid &lt; tuple &lt; map &lt; nil &lt; list &lt; bit string</pre>
+ <p><c>nil</c> in the previous expression represents the empty list
+ (i.e. <c>[]</c>), which is regarded as a separate type from
+ <c>list/0</c>. That's why <c>nil &lt; list</c>.
+ </p>
<p>Lists are compared element by element. Tuples are ordered by
size, two tuples with the same size are compared element by
element.</p>