Skip to content
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

Merged
merged 5 commits into from
Dec 17, 2015
Merged

*: Tiny clean up #731

merged 5 commits into from
Dec 17, 2015

Conversation

zimulala
Copy link
Contributor

No description provided.

@@ -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.
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

occur error -> occurs errors?

Copy link
Member

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.

Copy link
Contributor Author

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.
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it‘s better.

@shenli
Copy link
Member

shenli commented Dec 16, 2015

LGTM

@zimulala
Copy link
Contributor Author

PTAL @siddontang

ngaut added a commit that referenced this pull request Dec 17, 2015
@ngaut ngaut merged commit eba26bd into master Dec 17, 2015
@ngaut ngaut deleted the zimuxia/tiny-cleanup branch December 17, 2015 05:21
rleungx pushed a commit to rleungx/tidb that referenced this pull request Feb 26, 2024
Signed-off-by: AmoebaProtozoa <8039876+AmoebaProtozoa@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants