From 8ed8d6ab047aa0f03e60f163fb8bf64d2d48fe3a Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Sat, 17 Sep 2022 16:01:06 -0700 Subject: [PATCH] Update commentary for Counter Inc method. --- pkg/sources/sources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sources/sources.go b/pkg/sources/sources.go index d6fa86b4..e439286b 100644 --- a/pkg/sources/sources.go +++ b/pkg/sources/sources.go @@ -110,7 +110,7 @@ type Counter struct { mu sync.Mutex } -// Inc increments the counter. +// Inc increments the counter and returns the new value. func (c *Counter) Inc() int { c.mu.Lock() defer c.mu.Unlock()