diff options
author | Nemil Dalal <nemild@gmail.com> | 2015-12-28 22:29:19 -0500 |
---|---|---|
committer | Nemil Dalal <nemild@gmail.com> | 2015-12-28 22:29:19 -0500 |
commit | 58ebc87f5f4114c3610633a7cd9c4264647b2448 (patch) | |
tree | 30fb13b85c5d46ba79f20f1301ac852620e6f5b1 | |
parent | ba3d5a6feb4a340c43b55b75516fed1d78fad9fb (diff) |
Minor edits
-rw-r--r-- | solidity.html.markdown | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/solidity.html.markdown b/solidity.html.markdown index b73ca0e5..5946c1f5 100644 --- a/solidity.html.markdown +++ b/solidity.html.markdown @@ -79,7 +79,9 @@ contract SimpleBank { // CamelCase balances[msg.sender] -= withdrawAmount; if (!msg.sender.send(withdrawAmount)) { - balances[msg.sender] += withdrawAmount; // to be safe + // to be safe, may be sending to contract that + // has overridden 'send' which may then fail + balances[msg.sender] += withdrawAmount; } } @@ -710,7 +712,9 @@ someContractAddress.callcode('function_name'); // else should be placed on own line -// 13. NATSPEC comments - used for documentation, commenting, and external UIs +// 13. NATSPEC COMENTS +// used for documentation, commenting, and external UIs + // Contract natspec - always above contract definition /// @title Contract title /// @author Author name @@ -740,7 +744,6 @@ someContractAddress.callcode('function_name'); ## Information purposefully excluded - Libraries -- [Call keyword](http://solidity.readthedocs.org/en/latest/types.html) ## Style - Python's [PEP8](https://www.python.org/dev/peps/pep-0008/) is used as the baseline style guide, including its general philosophy) |