Merge pull request #4701 from gyuho/typo

storage: fix minor typo
This commit is contained in:
Xiang Li 2016-03-06 17:07:02 -08:00
commit b9228180f1
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ var (
ErrRevisionNotFound = errors.New("stroage: revision not found")
)
// keyIndex stores the revision of an key in the backend.
// keyIndex stores the revisions of a key in the backend.
// Each keyIndex has at least one key generation.
// Each generation might have several key versions.
// Tombstone on a key appends an tombstone version at the end
@ -146,7 +146,7 @@ func (ki *keyIndex) get(atRev int64) (modified, created revision, ver int64, err
return revision{}, revision{}, 0, ErrRevisionNotFound
}
// since returns revisions since the give rev. Only the revision with the
// since returns revisions since the given rev. Only the revision with the
// largest sub revision will be returned if multiple revisions have the same
// main revision.
func (ki *keyIndex) since(rev int64) []revision {

View File

@ -22,7 +22,7 @@ import (
)
// TestRevision tests that revision could be encoded to and decoded from
// bytes slice. Moreover, the lexicograph order of its byte slice representation
// bytes slice. Moreover, the lexicographical order of its byte slice representation
// follows the order of (main, sub).
func TestRevision(t *testing.T) {
tests := []revision{