docs: improve grammar and fix typos (#5361)
This alters some comments in source files, but is interested mainly in documentation files and help messages.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Package bucket is contains utilities for managing bucket based backends
|
||||
// Package bucket is contains utilities for managing bucket-based backends
|
||||
package bucket
|
||||
|
||||
import (
|
||||
|
||||
Vendored
+3
-3
@@ -158,7 +158,7 @@ func TestCachePin(t *testing.T) {
|
||||
_, err := c.Get("/", create)
|
||||
require.NoError(t, err)
|
||||
|
||||
// Pin a non existent item to show nothing happens
|
||||
// Pin a non-existent item to show nothing happens
|
||||
c.Pin("notfound")
|
||||
|
||||
c.mu.Lock()
|
||||
@@ -312,7 +312,7 @@ func TestCacheRename(t *testing.T) {
|
||||
|
||||
assert.Equal(t, 2, c.Entries())
|
||||
|
||||
// rename to non existent
|
||||
// rename to non-existent
|
||||
value, found := c.Rename("existing1", "EXISTING1")
|
||||
assert.Equal(t, true, found)
|
||||
assert.Equal(t, existing1, value)
|
||||
@@ -326,7 +326,7 @@ func TestCacheRename(t *testing.T) {
|
||||
|
||||
assert.Equal(t, 1, c.Entries())
|
||||
|
||||
// rename non existent
|
||||
// rename non-existent
|
||||
value, found = c.Rename("notfound", "NOTFOUND")
|
||||
assert.Equal(t, false, found)
|
||||
assert.Nil(t, value)
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
// and b will be set.
|
||||
//
|
||||
// This is useful for copying between almost identical structures that
|
||||
// are frequently present in auto generated code for cloud storage
|
||||
// are frequently present in auto-generated code for cloud storage
|
||||
// interfaces.
|
||||
func SetFrom(a, b interface{}) {
|
||||
ta := reflect.TypeOf(a).Elem()
|
||||
|
||||
Reference in New Issue
Block a user