chore: fix some typos in comments

Signed-off-by: camcui <cuishua@sina.cn>
pull/1624/head
camcui 11 months ago
parent 80895ea9e1
commit 3ec3f55280

@ -6,7 +6,7 @@ import (
) )
// Sleep awaits for provided interval. // Sleep awaits for provided interval.
// Can be interrupted by context cancelation. // Can be interrupted by context cancellation.
func Sleep(ctx context.Context, interval time.Duration) error { func Sleep(ctx context.Context, interval time.Duration) error {
timer := time.NewTimer(interval) timer := time.NewTimer(interval)
select { select {

@ -471,7 +471,7 @@ func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, p
} }
} }
if err != nil { if err != nil {
return nil, fmt.Errorf("cound not get pid(s), %d: %w", pid, err) return nil, fmt.Errorf("could not get pid(s), %d: %w", pid, err)
} }
return statsFromInodesWithContext(ctx, root, pid, tmap, inodes, skipUids) return statsFromInodesWithContext(ctx, root, pid, tmap, inodes, skipUids)
} }

Loading…
Cancel
Save