Skip to content

Commit

Permalink
Documentation pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahlonsmith committed Mar 25, 2016
1 parent fb37f36 commit 0c4b25c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ client.receipt_callback = accept_receipt
client.connect
var headers = seq[ tuple[name:string, value:string] ]
headers.add( "x-breakfast", "tequila" )
headers.add( "receipt", "special-identifier" )
headers.add( ("x-breakfast", "tequila") )
headers.add( ("receipt", "special-identifier") )
client.send( "/destination", "message!", "text/plain", headers )
```
Expand Down Expand Up @@ -116,16 +116,16 @@ client.begin( "trans-2" )
client.begin( "trans-3" )
var headers = seq[ tuple[name:string, value:string] ]
headers.add( "transaction", "trans-1" )
headers.add( ("transaction", "trans-1") )
client.send( "/destination", "hi", nil, headers ) # Part of "trans-1"
headers = @[]
headers.add( "transaction", "trans-2" )
headers.add( ("transaction", "trans-2") )
client.send( "/destination", "hi", nil, headers ) # Part of "trans-2"
client.ack( "some-ack-id", "trans-2" ) # Part of "trans-2"
headers = @[]
headers.add( "transaction", "trans-3" )
headers.add( ("transaction", "trans-3") )
client.send( "/destination", "hi", nil, headers ) # Part of "trans-3"
client.ack( "some-ack-id", "trans-3" ) # Part of "trans-3"
Expand Down

0 comments on commit 0c4b25c

Please sign in to comment.