From 0056720d05d72d7b3a1b3cbdae5b5c5d80e167d3 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 29 Sep 2018 21:39:33 +0200 Subject: xgbgen: generate proper sentences with full stops --- nexgb/xgbgen/go_request_reply.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'nexgb/xgbgen') 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()) -- cgit v1.2.3-70-g09d2