Merge pull request #759 from menghanl/streams_in_serviceinfo_comments

Fix comments
This commit is contained in:
Qi Zhao
2016-07-14 10:55:28 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ func (s *serverReflectionServer) serviceMetadataForSymbol(name string) (interfac
return nil, fmt.Errorf("unknown symbol: %v", name)
}
// Search for method name in info.Methods.
// Search the method name in info.Methods.
var found bool
for _, m := range info.Methods {
if m.Name == name[pos+1:] {

View File

@ -245,7 +245,7 @@ func (s *Server) register(sd *ServiceDesc, ss interface{}) {
s.m[sd.ServiceName] = srv
}
// MethodInfo contains information about an RPC.
// MethodInfo contains the information of an RPC including its method name and type.
type MethodInfo struct {
// Name is the method name only, without the service name or package name.
Name string