diff options
author | shooter <shooter.hero@gmail.com> | 2018-12-04 00:21:52 +0800 |
---|---|---|
committer | shooter <shooter.hero@gmail.com> | 2018-12-25 15:08:19 +0800 |
commit | 4d487850893fb52c8345fae25c06822e7f0e3857 (patch) | |
tree | a63dbae9efd426a88f4c13871d7f82bd4566bf29 | |
parent | e9fb77c86d37503c810a19ad20ff9fcb103084cc (diff) |
Fix: `console.log` is javascript grammer
-rw-r--r-- | solidity.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solidity.html.markdown b/solidity.html.markdown index 4ff770eb..a545f3ce 100644 --- a/solidity.html.markdown +++ b/solidity.html.markdown @@ -237,7 +237,7 @@ uint x[][5]; // arr with 5 dynamic array elements (opp order of most languages) // Dictionaries (any type to any other type) mapping (string => uint) public balances; balances["charles"] = 1; -console.log(balances["ada"]); // is 0, all non-set key values return zeroes +// balances["ada"] is 0, all non-set key values return zeroes // 'public' allows following from another contract contractName.balances("charles"); // returns 1 // 'public' created a getter (but not setter) like the following: |