xgbgen: generate proper sentences with full stops
This commit is contained in:
parent
28a5112532
commit
0056720d05
|
@ -15,7 +15,7 @@ func (r *Request) Define(c *Context) {
|
||||||
if r.Reply != nil {
|
if r.Reply != nil {
|
||||||
c.Putln("// %s sends a checked request.", r.SrcName())
|
c.Putln("// %s sends a checked request.", r.SrcName())
|
||||||
c.Putln("// If an error occurs, it will be returned with the reply "+
|
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 {",
|
c.Putln("func %s(c *xgb.Conn, %s) %s {",
|
||||||
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
||||||
r.CheckExt(c)
|
r.CheckExt(c)
|
||||||
|
@ -53,7 +53,7 @@ func (r *Request) Define(c *Context) {
|
||||||
|
|
||||||
c.Putln("// %sChecked sends a checked request.", r.SrcName())
|
c.Putln("// %sChecked sends a checked request.", r.SrcName())
|
||||||
c.Putln("// If an error occurs, it can be retrieved using "+
|
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 {",
|
c.Putln("func %sChecked(c *xgb.Conn, %s) %s {",
|
||||||
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
r.SrcName(), r.ParamNameTypes(), r.CookieName())
|
||||||
r.CheckExt(c)
|
r.CheckExt(c)
|
||||||
|
@ -161,8 +161,7 @@ func (r *Request) WriteRequest(c *Context) {
|
||||||
"// write request size in 4-byte units")
|
"// write request size in 4-byte units")
|
||||||
c.Putln("return buf[:b]")
|
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 for transfer.",
|
||||||
c.Putln("// %s writes a %s request to a byte slice.",
|
|
||||||
r.ReqName(), r.SrcName())
|
r.ReqName(), r.SrcName())
|
||||||
c.Putln("func %s(c *xgb.Conn, %s) []byte {",
|
c.Putln("func %s(c *xgb.Conn, %s) []byte {",
|
||||||
r.ReqName(), r.ParamNameTypes())
|
r.ReqName(), r.ParamNameTypes())
|
||||||
|
|
Loading…
Reference in New Issue