From 3ec3f55280a1b80584c8980c290ee348d7710f65 Mon Sep 17 00:00:00 2001 From: camcui Date: Fri, 12 Apr 2024 15:00:55 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: camcui --- internal/common/sleep.go | 2 +- net/net_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/common/sleep.go b/internal/common/sleep.go index 9bed2419e..94cedfd34 100644 --- a/internal/common/sleep.go +++ b/internal/common/sleep.go @@ -6,7 +6,7 @@ import ( ) // 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 { timer := time.NewTimer(interval) select { diff --git a/net/net_linux.go b/net/net_linux.go index 6e8ce67fb..20ca5470a 100644 --- a/net/net_linux.go +++ b/net/net_linux.go @@ -471,7 +471,7 @@ func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, p } } 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) }