mirror of
https://github.com/docker/compose.git
synced 2025-07-28 08:04:09 +02:00
chore: make function comment match function name
Signed-off-by: dufucun <dufuchun@sohu.com>
This commit is contained in:
parent
2a84dfecfd
commit
8e2f799cd7
@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
const QuietPeriod = 500 * time.Millisecond
|
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.
|
// channel.
|
||||||
//
|
//
|
||||||
// The returned channel is closed when the debouncer is stopped via context cancellation or by closing the input channel.
|
// The returned channel is closed when the debouncer is stopped via context cancellation or by closing the input channel.
|
||||||
|
@ -31,7 +31,7 @@ func NewDir(prefix string) (*TempDir, error) {
|
|||||||
return NewDirAtRoot("", prefix)
|
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) {
|
func NewDirAtRoot(root, prefix string) (*TempDir, error) {
|
||||||
tmpDir, err := os.MkdirTemp(root, prefix)
|
tmpDir, err := os.MkdirTemp(root, prefix)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user