Skip to content

Commit

Permalink
Merge pull request ranjib#54 from kruszczynski/readme-fixes
Browse files Browse the repository at this point in the history
Fix README's example for test_and_set
  • Loading branch information
ranjib committed Jan 31, 2016
2 parents 79d490c + d1a54d0 commit 3fd110f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ client.delete('/nodes/', recursive: true)

### Test and set
```ruby
client.test_and_set('/nodes/n2', 2, 4) # will set /nodes/n2 's value to 2 only if its previous value was 4
client.test_and_set('/nodes/n2', value: 2, prevValue: 4) # will set /nodes/n2 's value to 2 only if its previous value was 4

```

Expand All @@ -94,7 +94,7 @@ client.leader
```
More examples and api details can be found in the [wiki](https://github.com/ranjib/etcd-ruby/wiki)

## Contributors
## Contributors
* Ranjib Dey
* [Jesse Nelson](https://github.com/spheromak)
* [Nilesh Bairagi](https://github.com/Bairagi)
Expand Down

0 comments on commit 3fd110f

Please sign in to comment.