xgbgen: generate proper sentences with full stops

This commit is contained in:
Přemysl Eric Janouch 2018-09-29 21:39:33 +02:00
parent 28a5112532
commit 0056720d05
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 4 deletions

View File

@ -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())