Skip to content

Commit f082605

Browse files
committed
Fix readme merge example by using Hash#update
Squashes the following: commit 0545399 Author: Ismael Celis <[email protected]> Date: Thu May 1 16:18:05 2014 +0100 Hash#update metter than #merge! commit d960813 Author: Ismael Celis <[email protected]> Date: Thu May 1 16:15:33 2014 +0100 Fix readme merge example
1 parent 9bb8cf4 commit f082605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Example API client:
1616
```ruby
1717
api = Hyperclient.new('http://myapp.com/api').tap do |api|
1818
api.digest_auth('user', 'password')
19-
api.headers.merge({'accept-encoding' => 'deflate, gzip'})
19+
api.headers.update({'accept-encoding' => 'deflate, gzip'})
2020
end
2121
```
2222

0 commit comments

Comments
 (0)