summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authorBob Jiang <jiangxb@gmail.com>2018-12-03 22:37:05 +0800
committerBob Jiang <jiangxb@gmail.com>2018-12-03 22:37:05 +0800
commit065e461168aa139806f20e1a79e2abb768982b5f (patch)
tree492570d80ace81158ea90b8b9b3c6b3bb52a6222 /zh-cn
parentb63153acbd6a4a2b3ad9b4cec5229992ce01557c (diff)
update based on inkydragon comments
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/solidity-cn.html.markdown (renamed from zh-cn/solidity.html.markdown)8
1 files changed, 4 insertions, 4 deletions
diff --git a/zh-cn/solidity.html.markdown b/zh-cn/solidity-cn.html.markdown
index 69c8d5e6..14a819dc 100644
--- a/zh-cn/solidity.html.markdown
+++ b/zh-cn/solidity-cn.html.markdown
@@ -1,6 +1,6 @@
---
language: Solidity
-filename: learnSolidity.sol
+filename: learnSolidity-cn.sol
lang: zh-cn
contributors:
- ["Nemil Dalal", "https://www.nemil.com"]
@@ -60,7 +60,7 @@ contract SimpleBank { // 单词首字母大写
// Events(事件) - 向外部监听器发布动作
event LogDepositMade(address accountAddress, uint amount);
- // Constructor(构造函数)(译者注:新版solidity使用 constructor()作为构造函数)
+ // Constructor(构造函数)(译者注:solidity 从0.4.22开始使用 constructor() 作为构造函数)
function SimpleBank() public {
// msg 提供了发送给合约的消息详情
// msg.sender 是合约的调用者(这里是合约创建者的地址)
@@ -84,7 +84,7 @@ contract SimpleBank { // 单词首字母大写
}
/// @notice 从银行取款以太币 (ether)
- /// @dev This does not return any excess ether sent to it 不会返回任何多余的以太币(ether)
+ /// @dev 不会返回任何多余的以太币(ether)
/// @param withdrawAmount 取款的数量
/// @return 用户还剩下的余额
function withdraw(uint withdrawAmount) public returns (uint remainingBal) {
@@ -329,7 +329,7 @@ function increment(uint x) view returns (uint x) {
}
// 'pure' 比 'view' 或 'constant' 更加严格,甚至不允许读取状态变量
-// 具体的规则很负责,请参考
+// 具体的规则很复杂,请参考
// view/pure:
// http://solidity.readthedocs.io/en/develop/contracts.html#view-functions