diff options
| author | Ian Bertolacci <ian.bertolacci@gmail.com> | 2015-10-02 10:15:08 -0600 | 
|---|---|---|
| committer | Ian Bertolacci <ian.bertolacci@gmail.com> | 2015-10-02 10:15:08 -0600 | 
| commit | 53790a00980f0ab58efeea5a20c97366daeca401 (patch) | |
| tree | 60cced8d7b62becacd31b6fb56d9a7c41f1de809 /zh-cn | |
| parent | 938720074b8b18a9ada93fb8a040b9ca1a813747 (diff) | |
| parent | d5b5b19ca909b573d0b0623604f1ff9369ab04ff (diff) | |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'zh-cn')
| -rw-r--r-- | zh-cn/bash-cn.html.markdown | 2 | ||||
| -rw-r--r-- | zh-cn/go-cn.html.markdown | 4 | ||||
| -rw-r--r-- | zh-cn/java-cn.html.markdown | 2 | ||||
| -rw-r--r-- | zh-cn/javascript-cn.html.markdown | 2 | ||||
| -rw-r--r-- | zh-cn/markdown-cn.html.markdown | 2 | ||||
| -rw-r--r-- | zh-cn/ruby-cn.html.markdown | 9 | 
6 files changed, 11 insertions, 10 deletions
| diff --git a/zh-cn/bash-cn.html.markdown b/zh-cn/bash-cn.html.markdown index 558d9110..d85e5b8f 100644 --- a/zh-cn/bash-cn.html.markdown +++ b/zh-cn/bash-cn.html.markdown @@ -258,7 +258,7 @@ help return  help source  help . -# 用 mam 指令阅读相关的 Bash 手册 +# 用 man 指令阅读相关的 Bash 手册  apropos bash  man 1 bash  man bash diff --git a/zh-cn/go-cn.html.markdown b/zh-cn/go-cn.html.markdown index 9f6a8c15..49224085 100644 --- a/zh-cn/go-cn.html.markdown +++ b/zh-cn/go-cn.html.markdown @@ -239,7 +239,7 @@ func learnConcurrency() {      go inc(0, c) // go is a statement that starts a new goroutine.      go inc(10, c)      go inc(-805, c) -    // 从channel中独处结果并打印。 +    // 从channel中读取结果并打印。      // 打印出什么东西是不可预知的。      fmt.Println(<-c, <-c, <-c) // channel在右边的时候,<-是读操作。 @@ -283,4 +283,4 @@ Go的根源在[Go官方网站](http://golang.org/)。  强烈推荐阅读语言定义部分,很简单而且很简洁!(as language definitions go these days.) -学习Go还要阅读Go标准库的源代码,全部文档化了,可读性非常好,可以学到go,go style和go idioms。在文档中点击函数名,源代码就出来了! +学习Go还要阅读Go[标准库的源代码](http://golang.org/src/),全部文档化了,可读性非常好,可以学到go,go style和go idioms。在[文档](http://golang.org/pkg/)中点击函数名,源代码就出来了! diff --git a/zh-cn/java-cn.html.markdown b/zh-cn/java-cn.html.markdown index f08d3507..12afa59a 100644 --- a/zh-cn/java-cn.html.markdown +++ b/zh-cn/java-cn.html.markdown @@ -149,7 +149,7 @@ public class LearnJava {          // 位运算操作符          /* -        ~       补 +        ~       取反,求反码          <<      带符号左移          >>      带符号右移          >>>     无符号右移 diff --git a/zh-cn/javascript-cn.html.markdown b/zh-cn/javascript-cn.html.markdown index b450ab84..dfeb2012 100644 --- a/zh-cn/javascript-cn.html.markdown +++ b/zh-cn/javascript-cn.html.markdown @@ -402,7 +402,7 @@ myObj.meaningOfLife; // = 42  // 函数也可以工作。  myObj.myFunc() // = "hello world!" -// 当然,如果你要访问的成员在原型当中也没有定义的话,解释器就会去找原型的原型,以此类堆。 +// 当然,如果你要访问的成员在原型当中也没有定义的话,解释器就会去找原型的原型,以此类推。  myPrototype.__proto__ = {      myBoolean: true  }; diff --git a/zh-cn/markdown-cn.html.markdown b/zh-cn/markdown-cn.html.markdown index b1143dac..b633714d 100644 --- a/zh-cn/markdown-cn.html.markdown +++ b/zh-cn/markdown-cn.html.markdown @@ -69,7 +69,7 @@ __此文本也是__  <!-- 如果你插入一个 HTML中的<br />标签,你可以在段末加入两个以上的空格,  然后另起一段。--> -此段落结尾有两个空格(选中以显示)。       +此段落结尾有两个空格(选中以显示)。    上文有一个 <br /> ! diff --git a/zh-cn/ruby-cn.html.markdown b/zh-cn/ruby-cn.html.markdown index 99250b43..14d38137 100644 --- a/zh-cn/ruby-cn.html.markdown +++ b/zh-cn/ruby-cn.html.markdown @@ -7,6 +7,7 @@ contributors:    - ["Joel Walden", "http://joelwalden.net"]    - ["Luke Holder", "http://twitter.com/lukeholder"]    - ["lidashuang", "https://github.com/lidashuang"] +  - ["ftwbzhao", "https://github.com/ftwbzhao"]  translators:    - ["Lin Xiangyu", "https://github.com/oa414"]  --- @@ -120,11 +121,11 @@ status == :approved #=> false  # 数组  # 这是一个数组 -[1, 2, 3, 4, 5] #=> [1, 2, 3, 4, 5] +array = [1, 2, 3, 4, 5] #=> [1, 2, 3, 4, 5]  # 数组可以包含不同类型的元素 -array = [1, "hello", false] #=> => [1, "hello", false] +[1, "hello", false] #=> [1, "hello", false]  # 数组可以被索引  # 从前面开始 @@ -140,8 +141,8 @@ array.[] 12 #=> nil  # 从尾部开始  array[-1] #=> 5 -# 同时指定开始的位置和结束的位置 -array[2, 4] #=> [3, 4, 5] +# 同时指定开始的位置和长度 +array[2, 3] #=> [3, 4, 5]  # 或者指定一个范围  array[1..3] #=> [2, 3, 4] | 
