]> Cypherpunks repositories - gostls13.git/commit
go/doc: update header rules
authorRuss Cox <rsc@golang.org>
Fri, 6 Jul 2018 01:38:02 +0000 (21:38 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 6 Jul 2018 18:40:55 +0000 (18:40 +0000)
commitfb72965df06e193bce0b999a0b5cb2a7b817fc7c
treebd127cb6fc9a80cee0767a41992463d50ad29696
parentc5ac91d0e1082914d3eeb8dff9d80974eb1bf9b7
go/doc: update header rules

Go documentation can have header lines, which are single-line paragraphs
with leading and trailing letters and almost no punctuation.
Before this CL, the only allowed punctuation was ' followed by s.

After this CL, parentheses and commas are also allowed,
to pick up a pair of previously unrecognized headings in the
go command documentation:

Gofmt (reformat) package sources
Modules, module versions, and more

Change-Id: I6d59c40a1269f01cef62a3fb17b909571c2f2adb
Reviewed-on: https://go-review.googlesource.com/122407
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
src/go/doc/comment.go