aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChris Ward <chriswhward@gmail.com>2018-11-23 17:16:30 +0800
committerChris Ward <chriswhward@gmail.com>2018-11-23 17:16:30 +0800
commit9c1bdb74b97ea46c621dca430cd401589f800214 (patch)
treeef4672808e08c1b5db77337e591c3e081f8df298 /docs
parentbc5d152e860fdefd9792937b46af8e3eabce1dc1 (diff)
downloaddexon-solidity-9c1bdb74b97ea46c621dca430cd401589f800214.tar
dexon-solidity-9c1bdb74b97ea46c621dca430cd401589f800214.tar.gz
dexon-solidity-9c1bdb74b97ea46c621dca430cd401589f800214.tar.bz2
dexon-solidity-9c1bdb74b97ea46c621dca430cd401589f800214.tar.lz
dexon-solidity-9c1bdb74b97ea46c621dca430cd401589f800214.tar.xz
dexon-solidity-9c1bdb74b97ea46c621dca430cd401589f800214.tar.zst
dexon-solidity-9c1bdb74b97ea46c621dca430cd401589f800214.zip
Add default value details
Diffstat (limited to 'docs')
-rw-r--r--docs/types.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst
index cf123055..5a0acfbb 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -13,7 +13,10 @@ Solidity provides several elementary types which can be combined to form complex
In addition, types can interact with each other in expressions containing
operators. For a quick reference of the various operators, see :ref:`order`.
-The concept of "undefined" or "null" values do not exist in Solidity. To handle any unexpected values, you should use the :ref:`revert function<assert-and-require>` to revert the whole transaction, or return a tuple with a second `bool` value denoting success.
+The concept of "undefined" or "null" values do not exist in Solidity, but newly
+declared variables always have a :ref:`default value<default-value>` dependent
+on its type. To handle any unexpected values, you should use the :ref:`revert function<assert-and-require>` to revert the whole transaction, or return a
+tuple with a second `bool` value denoting success.
.. index:: ! value type, ! type;value