From 72107de108a7f37bef9e603ce477eb9487c851b5 Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Thu, 13 Jun 2024 01:37:15 -0700 Subject: [PATCH] spelling --- storage/kv/bucket.go | 2 +- storage/kv/kvdiskv/bucket.go | 2 +- storage/kv/kvmap/bucket.go | 2 +- storage/kv/kvprefix/bucket.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/kv/bucket.go b/storage/kv/bucket.go index 1b4c1e5..8841fa9 100644 --- a/storage/kv/bucket.go +++ b/storage/kv/bucket.go @@ -12,7 +12,7 @@ type ROBucket interface { // Has checks that key can be found. Has(ctx context.Context, key string) (found bool, err error) - // Get retreives value at key. + // Get retrieves value at key. // If key is not found then ErrKeyNotFound should be // returned in the error chain. Get(ctx context.Context, key string) (value []byte, err error) diff --git a/storage/kv/kvdiskv/bucket.go b/storage/kv/kvdiskv/bucket.go index 881f99a..ab724ca 100644 --- a/storage/kv/kvdiskv/bucket.go +++ b/storage/kv/kvdiskv/bucket.go @@ -9,7 +9,7 @@ import ( "github.com/micromdm/nanolib/storage/kv" ) -// Get retreives the value at key in the diskv store. +// Get retrieves the value at key in the diskv store. // If key is not found then a wrapped ErrKeyNotFound will be returned. func (b *KVDiskv) Get(_ context.Context, key string) ([]byte, error) { r, err := b.diskv.Read(key) diff --git a/storage/kv/kvmap/bucket.go b/storage/kv/kvmap/bucket.go index 440da8c..403b8d0 100644 --- a/storage/kv/kvmap/bucket.go +++ b/storage/kv/kvmap/bucket.go @@ -7,7 +7,7 @@ import ( "github.com/micromdm/nanolib/storage/kv" ) -// Get retreives the value at key in the Go map. +// Get retrieves the value at key in the Go map. // If key is not found then a wrapped ErrKeyNotFound will be returned. func (s *KVMap) Get(_ context.Context, key string) ([]byte, error) { s.mu.RLock() diff --git a/storage/kv/kvprefix/bucket.go b/storage/kv/kvprefix/bucket.go index d344820..1ee1850 100644 --- a/storage/kv/kvprefix/bucket.go +++ b/storage/kv/kvprefix/bucket.go @@ -4,7 +4,7 @@ import ( "context" ) -// Get retreives the value at key in the underlying store. +// Get retrieves the value at key in the underlying store. // The key is preprended with the prefix. func (b *KVPrefix) Get(ctx context.Context, key string) ([]byte, error) { return b.store.Get(ctx, b.prefix+key)