Skip to content

Commit 089f7b5

Browse files
committed
Each doc
1 parent 648d418 commit 089f7b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

memcache/selector.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ func (ss *ServerList) SetServers(servers ...string) error {
9090
}
9191

9292
// Each iterates over each server calling the given function
93+
// with the server address. If the function returns an error,
94+
// the iteration stops immediately and the error is returned.
9395
func (ss *ServerList) Each(f func(net.Addr) error) error {
9496
ss.mu.RLock()
9597
defer ss.mu.RUnlock()

0 commit comments

Comments
 (0)