chore: fix some comments

Signed-off-by: fmterrors <fmterrors@outlook.com>
This commit is contained in:
fmterrors authored and Nick Craig-Wood committed 2026-10-13 12:08:20 +01:00
1 parent ac9afc4f23
commit 927b6afd04
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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()
}
+2 -2
View File
@@ -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
}
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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])
}