From 50fd9d3b571c388579112f93fc35dac6090ad905 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Sun, 6 Mar 2016 11:57:21 -0800 Subject: [PATCH] storage: fix minor typos --- storage/key_index.go | 4 ++-- storage/revision_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/key_index.go b/storage/key_index.go index a3da24708..bd6f66895 100644 --- a/storage/key_index.go +++ b/storage/key_index.go @@ -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 { diff --git a/storage/revision_test.go b/storage/revision_test.go index 38d198f50..eee5fc743 100644 --- a/storage/revision_test.go +++ b/storage/revision_test.go @@ -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{