aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-09-29 21:39:33 +0200
committerPřemysl Janouch <p@janouch.name>2018-09-30 17:34:26 +0200
commit0056720d05d72d7b3a1b3cbdae5b5c5d80e167d3 (patch)
tree3f68d31d7ed72f8a7e98fc0feae7872c2dfca230
parent28a511253284a7be082d6c41e40aa2172b675263 (diff)
downloadhaven-0056720d05d72d7b3a1b3cbdae5b5c5d80e167d3.tar.gz
haven-0056720d05d72d7b3a1b3cbdae5b5c5d80e167d3.tar.xz
haven-0056720d05d72d7b3a1b3cbdae5b5c5d80e167d3.zip
xgbgen: generate proper sentences with full stops
-rw-r--r--nexgb/xgbgen/go_request_reply.go7
1 files changed, 3 insertions, 4 deletions
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())