Skip to content

Commit 3ec3f55

Browse files
committed
chore: fix some typos in comments
Signed-off-by: camcui <[email protected]>
1 parent 80895ea commit 3ec3f55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/common/sleep.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
// Sleep awaits for provided interval.
9-
// Can be interrupted by context cancelation.
9+
// Can be interrupted by context cancellation.
1010
func Sleep(ctx context.Context, interval time.Duration) error {
1111
timer := time.NewTimer(interval)
1212
select {

net/net_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, p
471471
}
472472
}
473473
if err != nil {
474-
return nil, fmt.Errorf("cound not get pid(s), %d: %w", pid, err)
474+
return nil, fmt.Errorf("could not get pid(s), %d: %w", pid, err)
475475
}
476476
return statsFromInodesWithContext(ctx, root, pid, tmap, inodes, skipUids)
477477
}

0 commit comments

Comments
 (0)