Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7812 from ryandav/patch-5
Browse files Browse the repository at this point in the history
Update with default hash value
  • Loading branch information
amandeepmittal authored Apr 24, 2018
2 parents 3783140 + bb7cdda commit 5514ea7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/ruby/ruby-hashes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ There are a couple of different ways to create a new hash:
```ruby
hash1 = {a: 100, b: "200"}
hash2 = Hash.new
hash3 = Hash.new(0) # with default value set to 0
```

A programmer can then access a hash value using its key, rather than the index.
Expand Down

0 comments on commit 5514ea7

Please sign in to comment.