go/doc: exclude lines ending in ':' from possible headings
This is a more conservative approach to heading detection and removes 11 headings from the current repository (several in fmt). The current headscan output is: /home/gri/go3/src/cmd/goinstall (package documentation) Remote Repositories The GOPATH Environment Variable /home/gri/go3/src/pkg/exp/gotype (package documentation) Examples /home/gri/go3/src/pkg/html/template (package template) Introduction Contexts Errors A fuller picture Contexts Typed Strings Security Model /home/gri/go3/src/pkg/text/template (package template) Actions Arguments Pipelines Variables Examples Functions Associated templates Nested template definitions 18 headings found R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/5437105
Showing
Please register or sign in to comment