From 4d487850893fb52c8345fae25c06822e7f0e3857 Mon Sep 17 00:00:00 2001 From: shooter Date: Tue, 4 Dec 2018 00:21:52 +0800 Subject: Fix: `console.log` is javascript grammer --- solidity.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solidity.html.markdown') 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: -- cgit v1.2.3