aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-02 23:33:46 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-03 18:07:15 +0800
commitd58a4e08daba3a672a3494402b2d448c704dd69e (patch)
treee8998d144070192f0aa7cac183cead34b3490280 /docs/frequently-asked-questions.rst
parent7e838fd4a875e6a1f7e7ec60d7b4c5502e22dde4 (diff)
downloaddexon-solidity-d58a4e08daba3a672a3494402b2d448c704dd69e.tar.gz
dexon-solidity-d58a4e08daba3a672a3494402b2d448c704dd69e.tar.zst
dexon-solidity-d58a4e08daba3a672a3494402b2d448c704dd69e.zip
Corrections and some style.
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index 029e32eb..03ee8388 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -665,7 +665,7 @@ What does the following strange check do in the Custom Token contract?
::
- require(balanceOf[_to] + _value >= balanceOf[_to]);
+ require((balanceOf[_to] + _value) >= balanceOf[_to]);
Integers in Solidity (and most other machine-related programming languages) are restricted to a certain range.
For ``uint256``, this is ``0`` up to ``2**256 - 1``. If the result of some operation on those numbers