summaryrefslogtreecommitdiffhomepage
path: root/solidity.html.markdown
diff options
context:
space:
mode:
authorshooter <shooter.hero@gmail.com>2018-12-04 00:21:52 +0800
committershooter <shooter.hero@gmail.com>2018-12-25 15:08:19 +0800
commit4d487850893fb52c8345fae25c06822e7f0e3857 (patch)
treea63dbae9efd426a88f4c13871d7f82bd4566bf29 /solidity.html.markdown
parente9fb77c86d37503c810a19ad20ff9fcb103084cc (diff)
Fix: `console.log` is javascript grammer
Diffstat (limited to 'solidity.html.markdown')
-rw-r--r--solidity.html.markdown2
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: