From 868a8a8fa03fc3cf47fd66335a7924d7876f1c0e Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 30 Nov 2016 11:00:27 +0000 Subject: docs: update overflow cleanup wording --- docs/miscellaneous.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') 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 | | | -- cgit