From 5f2e2f999e8170e103a7516fefeee3ceba1f7877 Mon Sep 17 00:00:00 2001 From: Elliot Wright Date: Mon, 13 Nov 2017 21:37:12 +0000 Subject: [PATCH] Corrected documentation on Server.Serve (#1668) --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 02316e8b..e2d11ce9 100644 --- a/server.go +++ b/server.go @@ -462,7 +462,7 @@ func (s *Server) useTransportAuthenticator(rawConn net.Conn) (net.Conn, credenti // read gRPC requests and then call the registered handlers to reply to them. // Serve returns when lis.Accept fails with fatal errors. lis will be closed when // this method returns. -// Serve always returns non-nil error. +// Serve will return a non-nil error unless Stop or GracefulStop is called. func (s *Server) Serve(lis net.Listener) error { s.mu.Lock() s.printf("serving")