1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-11 09:14:39 +02:00

Merge pull request #2549 from vra/master

[ruby/zh-cn]fix a typo
This commit is contained in:
Geoff Liu
2016-10-31 10:53:04 -04:00
committed by GitHub

View File

@@ -214,7 +214,7 @@ hash.keys #=> ['color', 'number']
hash['color'] #=> 'green'
hash['number'] #=> 5
# 查询一个不存在键将会返回nil
# 查询一个不存在键将会返回nil
hash['nothing here'] #=> nil
# 从Ruby 1.9开始,用符号作为键的时候有特别的记号表示: