aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-11-30 19:00:27 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-12-01 00:42:45 +0800
commit868a8a8fa03fc3cf47fd66335a7924d7876f1c0e (patch)
tree6cb6de53ca1a4c465a0614bb1d60443cb25ee184 /docs
parentd77c8f730ce6a7c4caa86bb8e3bf1e5ca13b2117 (diff)
downloaddexon-solidity-868a8a8fa03fc3cf47fd66335a7924d7876f1c0e.tar
dexon-solidity-868a8a8fa03fc3cf47fd66335a7924d7876f1c0e.tar.gz
dexon-solidity-868a8a8fa03fc3cf47fd66335a7924d7876f1c0e.tar.bz2
dexon-solidity-868a8a8fa03fc3cf47fd66335a7924d7876f1c0e.tar.lz
dexon-solidity-868a8a8fa03fc3cf47fd66335a7924d7876f1c0e.tar.xz
dexon-solidity-868a8a8fa03fc3cf47fd66335a7924d7876f1c0e.tar.zst
dexon-solidity-868a8a8fa03fc3cf47fd66335a7924d7876f1c0e.zip
docs: update overflow cleanup wording
Diffstat (limited to 'docs')
-rw-r--r--docs/miscellaneous.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst
index 6e1b575a..963edf26 100644
--- a/docs/miscellaneous.rst
+++ b/docs/miscellaneous.rst
@@ -95,11 +95,11 @@ bytes. The internal function calls use a different convention.
Internals - Cleaning Up Overflows in EVM
****************************************
-When a value is shorter than 256-bit, sometimes the remaining bits
+When a value is shorter than 256-bit, in some cases the remaining bits
must be cleaned.
The Solidity compiler is designed to clean such remaining bits before any operations
-that might be broken by the garbage in the remaining bits. For
-example, before writing a value to the memory, the remaining bits need
+that might be adversely affected by the potential garbage in the remaining bits.
+For example, before writing a value to the memory, the remaining bits need
to be cleared because the memory contents can be used for computing
hashes or sent as the data of a message call. Similarly, before
storing a value in the storage, the remaining bits need to be cleaned
@@ -117,7 +117,7 @@ cleans input data when it is loaded onto the stack.
Different types have different rules for cleaning up invalid values:
+---------------+---------------+-------------------+
-|Type |Valid Valies |Invalid Values Mean|
+|Type |Valid Values |Invalid Values Mean|
+===============+===============+===================+
|enum of n |0 until n - 1 |exception |
|members | | |