diff options
author | Kenryu Shibata <kenryudev5894@gmail.com> | 2023-06-15 18:45:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 18:45:00 -0400 |
commit | b96838ce82fc3251616ac3d3158ddc0d34ba5103 (patch) | |
tree | c183d75e3a9e1293235a71bfe3b3f979c603d7b5 /zh-cn/ruby-cn.html.markdown | |
parent | 937125b5a481b6481dd4d4e2aeabd81728d42f51 (diff) | |
parent | b3a8f56424494d1d87e7d9e8b4f176f8bca1cf09 (diff) |
Merge branch 'adambard:master' into css-ja-jp
Diffstat (limited to 'zh-cn/ruby-cn.html.markdown')
-rw-r--r-- | zh-cn/ruby-cn.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zh-cn/ruby-cn.html.markdown b/zh-cn/ruby-cn.html.markdown index 63adab64..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." |