-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: Tiny clean up #731
*: Tiny clean up #731
Conversation
@@ -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 error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
occur error -> any error occurs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
occur error -> occurs errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"error" is the subject and "occur" is the predicate.
occur is an intransitive verb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it.
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about there is an existing entry
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it‘s better.
LGTM |
PTAL @siddontang |
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
No description provided.