diff options
Diffstat (limited to 'zh-cn/ruby-cn.html.markdown')
| -rw-r--r-- | zh-cn/ruby-cn.html.markdown | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/zh-cn/ruby-cn.html.markdown b/zh-cn/ruby-cn.html.markdown index 9918c022..b0b8b58c 100644 --- a/zh-cn/ruby-cn.html.markdown +++ b/zh-cn/ruby-cn.html.markdown @@ -430,7 +430,7 @@ def guests(*array)    array.each { |guest| puts guest }  end -# 结构 +# 解构  # 如果函数返回一个数组,在赋值时可以进行拆分:  def foods @@ -449,7 +449,7 @@ end  best *ranked_competitors.first(3) #=> Winners are John, Sally, and Dingus. -# 结构操作符也可放在参数里面 +# 解构操作符也可放在参数里面  def best(first, second, third, *others)    puts "Winners are #{first}, #{second}, and #{third}."    puts "There were #{others.count} other participants." @@ -657,4 +657,4 @@ Something.new.qux # => 'qux'  - [Ruby from other languages](https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/)  - [Programming Ruby](http://www.amazon.com/Programming-Ruby-1-9-2-0-Programmers/dp/1937785491/) - An older [free edition](http://ruby-doc.com/docs/ProgrammingRuby/) is available online.  - [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide) - A community-driven Ruby coding style guide. -- [Try Ruby](http://tryruby.org) - Learn the basic of Ruby programming language, interactive in the browser. +- [Try Ruby](https://try.ruby-lang.org/) - Learn the basic of Ruby programming language, interactive in the browser. | 
