From 8e2f799cd74c3db49309323114944a9994f590ce Mon Sep 17 00:00:00 2001 From: dufucun Date: Wed, 16 Apr 2025 10:13:02 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: dufucun --- pkg/watch/debounce.go | 2 +- pkg/watch/temp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/watch/debounce.go b/pkg/watch/debounce.go index 76d0797b9..684054b5c 100644 --- a/pkg/watch/debounce.go +++ b/pkg/watch/debounce.go @@ -25,7 +25,7 @@ import ( const QuietPeriod = 500 * time.Millisecond -// batchDebounceEvents groups identical file events within a sliding time window and writes the results to the returned +// BatchDebounceEvents groups identical file events within a sliding time window and writes the results to the returned // channel. // // The returned channel is closed when the debouncer is stopped via context cancellation or by closing the input channel. diff --git a/pkg/watch/temp.go b/pkg/watch/temp.go index 4e5c52535..011f547c1 100644 --- a/pkg/watch/temp.go +++ b/pkg/watch/temp.go @@ -31,7 +31,7 @@ func NewDir(prefix string) (*TempDir, error) { return NewDirAtRoot("", prefix) } -// NewDir creates a new TempDir at the given root. +// NewDirAtRoot creates a new TempDir at the given root. func NewDirAtRoot(root, prefix string) (*TempDir, error) { tmpDir, err := os.MkdirTemp(root, prefix) if err != nil {