Skip to content

Commit

Permalink
kv: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Dec 15, 2015
1 parent fe57c9f commit 859945c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kv/index_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (c *kvIndex) GenIndexKey(indexedValues []interface{}, h int64) (key []byte,
}

// Create creates a new entry in the kvIndex data.
// If the index is unique and there already exists an entry with the same key, Create will return ErrKeyExists.
// If the index is unique and it already existed an entry with the same key, Create will return ErrKeyExists.
func (c *kvIndex) Create(rm RetrieverMutator, indexedValues []interface{}, h int64) error {
key, distinct, err := c.GenIndexKey(indexedValues, h)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion kv/iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func DecodeValue(data []byte) ([]interface{}, error) {
}

// NextUntil applies FnKeyCmp to each entry of the iterator until meets some condition.
// It will stop when fn returns true, or iterator is invalid or occur error.
// It will stop when fn returns true, or iterator is invalid or occur errors.
func NextUntil(it Iterator, fn FnKeyCmp) error {
var err error
for it.Valid() && !fn([]byte(it.Key())) {
Expand Down

0 comments on commit 859945c

Please sign in to comment.