Skip to content

Commit bec957a

Browse files
committed
Each doc
1 parent ce686e5 commit bec957a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)