diff --git a/README.md b/README.md index 7989ca5..ef20c8f 100644 --- a/README.md +++ b/README.md @@ -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, @@ -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()