aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-25 06:10:01 +0800
committerchriseth <c@ethdev.com>2017-01-25 06:37:48 +0800
commitd855eaab13392ef2ee3b75709c84b314d29afab9 (patch)
tree2a252fd5367b843e587f0c69319dee7a292c26d3
parent3949624a61b1dd0c32e67d30fe7d46b2511c583f (diff)
downloaddexon-solidity-d855eaab13392ef2ee3b75709c84b314d29afab9.tar.gz
dexon-solidity-d855eaab13392ef2ee3b75709c84b314d29afab9.tar.zst
dexon-solidity-d855eaab13392ef2ee3b75709c84b314d29afab9.zip
Documentation.
-rw-r--r--docs/types.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 6b67e684..cb14c8ac 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -171,6 +171,19 @@ Fixed Point Numbers
**COMING SOON...**
+.. index:: address, literal;address
+
+.. _address_literals:
+
+Address Literals
+----------------
+
+Hexadecimal literals that pass the address checksum test, for example
+``0xdCad3a6d3569DF655070DEd06cb7A1b2Ccd1D3AF`` are of ``address`` type.
+Hexadecimal literals that are 20 bytes long (differ from that in at
+most one hexadecimal digit) but do not pass the checksum test produce
+a warning and are treated as regular rational number literals.
+
.. index:: literal, literal;rational
.. _rational_literals: