Update commentary for Counter Inc method.

This commit is contained in:
Ahrav Dutta
2022-09-17 16:01:06 -07:00
parent d9f296e7d3
commit 8ed8d6ab04
+1 -1
View File
@@ -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()