aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-10-12 15:38:09 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-10-12 15:39:43 +0800
commit32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f (patch)
treef3dc4e281a210c1330a4468f7e75512bf50d8098 /docs/control-structures.rst
parentd6394c46a1ae8bce4e6ed52f19b26a66c3ab1428 (diff)
downloaddexon-solidity-32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f.tar
dexon-solidity-32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f.tar.gz
dexon-solidity-32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f.tar.bz2
dexon-solidity-32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f.tar.lz
dexon-solidity-32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f.tar.xz
dexon-solidity-32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f.tar.zst
dexon-solidity-32c3bd8e78e63a9d3ab61848f9f3d5ef854c0d1f.zip
Change phrasing around too small index
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r--docs/control-structures.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 6b66e55b..820fb280 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -324,8 +324,8 @@ In the following example, we show how ``throw`` can be used to easily revert an
Currently, there are six situations, where exceptions happen automatically in Solidity:
-1. If you access an array on or beyond its length (i.e. ``x[i]`` where ``i >= x.length``) or below zero.
-2. If you access a fixed-length bytes on or beyond its length, or below zero.
+1. If you access an array on a too large or negative index (i.e. ``x[i]`` where ``i >= x.length`` or ``i < 0``).
+2. If you access a fixed-length bytes on a too large or negative index.
3. If a function called via a message call does not finish properly (i.e. it runs out of gas, has no matching function, or throws an exception itself), except when a low level operation ``call``, ``send``, ``delegatecall`` or ``callcode`` is used.
4. If a non-existent function on a library is called or Ether is sent to a library.
5. If you divide or modulo by zero (e.g. ``5 / 0`` or ``23 % 0``).