1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-22 14:23:37 +02:00

update chinese version content

This commit is contained in:
shooter
2018-12-25 15:05:13 +08:00
parent 484e1325ef
commit 84f9aa47fc
2 changed files with 35 additions and 28 deletions

View File

@@ -5,6 +5,7 @@ contributors:
- ["Nemil Dalal", "https://www.nemil.com"]
- ["Joseph Chow", ""]
- ["Bhoomtawath Plinsut", "https://github.com/varshard"]
- ["Shooter", "https://github.com/liushooter"]
---
Solidity lets you program on [Ethereum](https://www.ethereum.org/), a
@@ -237,7 +238,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;
// balances["ada"] is 0, all non-set key values return zeroes
// balances["ada"] result 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: