Skip to content

Commit bcefa6a

Browse files
committed
chore: improve method documentation
1 parent 1e84b18 commit bcefa6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mapkeyvalue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (r *MapKeyValue[K, T]) GetAndCheck(key K) (T, bool) {
6565
}
6666

6767
// Get returns the value associated with the key.
68+
// If the key does not exist, return zero value of the type.
6869
func (r *MapKeyValue[K, T]) Get(key K) T {
6970
r.mu.RLock()
7071
defer r.mu.RUnlock()

0 commit comments

Comments
 (0)