diff --git a/nexgb/xgbgen/go_request_reply.go b/nexgb/xgbgen/go_request_reply.go index 9cadc33..fead79a 100644 --- a/nexgb/xgbgen/go_request_reply.go +++ b/nexgb/xgbgen/go_request_reply.go @@ -15,7 +15,7 @@ func (r *Request) Define(c *Context) { if r.Reply != nil { c.Putln("// %s sends a checked request.", r.SrcName()) c.Putln("// If an error occurs, it will be returned with the reply "+ - "by calling %s.Reply()", r.CookieName()) + "by calling %s.Reply.", r.CookieName()) c.Putln("func %s(c *xgb.Conn, %s) %s {", r.SrcName(), r.ParamNameTypes(), r.CookieName()) r.CheckExt(c) @@ -53,7 +53,7 @@ func (r *Request) Define(c *Context) { c.Putln("// %sChecked sends a checked request.", r.SrcName()) c.Putln("// If an error occurs, it can be retrieved using "+ - "%s.Check()", r.CookieName()) + "%s.Check.", r.CookieName()) c.Putln("func %sChecked(c *xgb.Conn, %s) %s {", r.SrcName(), r.ParamNameTypes(), r.CookieName()) r.CheckExt(c) @@ -161,8 +161,7 @@ func (r *Request) WriteRequest(c *Context) { "// write request size in 4-byte units") c.Putln("return buf[:b]") } - c.Putln("// Write request to wire for %s", r.SrcName()) - c.Putln("// %s writes a %s request to a byte slice.", + c.Putln("// %s writes a %s request to a byte slice for transfer.", r.ReqName(), r.SrcName()) c.Putln("func %s(c *xgb.Conn, %s) []byte {", r.ReqName(), r.ParamNameTypes())