Skip to content

Commit

Permalink
Merge pull request #3 from d2g/patch-1
Browse files Browse the repository at this point in the history
Update README.md example code from d2g.
  • Loading branch information
Steve Yen committed Sep 18, 2014
2 parents 7470afc + d2f97bc commit 3d2d210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -186,7 +186,7 @@ Examples
thisIsNil, err := c.Get([]byte("the-apollo-15-moon-buggy"))

// Iterate through items.
c.VisitItemsAscend([]byte("ford"), func(i *gkvlite.Item) bool {
c.VisitItemsAscend([]byte("ford"), true, func(i *gkvlite.Item) bool {
// This visitor callback will be invoked with every item
// with key "ford" and onwards, in key-sorted order.
// So: "mercedes", "tesla" are visited, in that ascending order,
Expand All @@ -203,7 +203,7 @@ Examples
// The snapshot won't see modifications against the original Store.
c.Delete([]byte("mercedes"))
mercedesIsNil, err := c.Get([]byte("mercedes"))
mercedesPriceFromSnapshot, err := snapCars.Get([]bytes("mercedes"))
mercedesPriceFromSnapshot, err := snapCars.Get([]byte("mercedes"))

// Persist all the changes to disk.
s.Flush()
Expand Down

0 comments on commit 3d2d210

Please sign in to comment.