Skip to content

Commit 69d1d23

Browse files
authoredNov 28, 2022
adjust doc string
1 parent ea02563 commit 69d1d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎plugins/plugin-klogs/pkg/instance/helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func getBucketTimes(interval, bucketTime, timeStart, timeEnd int64) (int64, int6
240240
return bucketTime, bucketTime + interval
241241
}
242242

243-
// appendIf appends a value to a slice, when this values doesn't exist in the slice already.
243+
// appendIf appends a value to a slice, when the predicate returns true
244244
func appendIf[T any](items []T, item T, predecate func(iter, newItem T) bool) []T {
245245
for _, ele := range items {
246246
if predecate(ele, item) {

0 commit comments

Comments
 (0)