diff --git a/backend/ulozto/ulozto.go b/backend/ulozto/ulozto.go index 6aa80d9ab..2b638e299 100644 --- a/backend/ulozto/ulozto.go +++ b/backend/ulozto/ulozto.go @@ -860,7 +860,7 @@ type RenamingObjectInfoProxy struct { remote string } -// Remote implements fs.ObjectInfo.Remote by delegating to the wrapped instance. +// String implements fs.ObjectInfo.String by delegating to the wrapped instance. func (s *RenamingObjectInfoProxy) String() string { return s.delegate.String() } diff --git a/fs/fserrors/error.go b/fs/fserrors/error.go index 413a5a1f9..7e23b7281 100644 --- a/fs/fserrors/error.go +++ b/fs/fserrors/error.go @@ -304,12 +304,12 @@ type wrappedCountableError struct { isCounted bool } -// CountableError interface +// Count marks this error as counted. func (err *wrappedCountableError) Count() { err.isCounted = true } -// CountableError interface +// IsCounted reports whether this error has already been counted. func (err *wrappedCountableError) IsCounted() bool { return err.isCounted } diff --git a/fs/operations/operations_test.go b/fs/operations/operations_test.go index 23a48e7d2..61438978f 100644 --- a/fs/operations/operations_test.go +++ b/fs/operations/operations_test.go @@ -1201,7 +1201,7 @@ func (i *testFsInfo) Precision() time.Duration { return i.precision } // Returns the supported hash types of the filesystem func (i *testFsInfo) Hashes() hash.Set { return i.hashes } -// Returns the supported hash types of the filesystem +// Features returns the optional features of this Fs. func (i *testFsInfo) Features() *fs.Features { return &i.features } func TestSameConfig(t *testing.T) { diff --git a/fs/sync/pipe.go b/fs/sync/pipe.go index 42d3e9234..ea2e74920 100644 --- a/fs/sync/pipe.go +++ b/fs/sync/pipe.go @@ -56,7 +56,7 @@ func (p *pipe) Len() int { return len(p.queue) } -// Len satisfy heap.Interface - must be called with lock held +// Less satisfies heap.Interface and must be called with the lock held. func (p *pipe) Less(i, j int) bool { return p.less(p.queue[i], p.queue[j]) }