]> Cypherpunks repositories - gostls13.git/commit
go/doc: exclude lines ending in ':' from possible headings
authorRobert Griesemer <gri@golang.org>
Thu, 1 Dec 2011 23:14:15 +0000 (15:14 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 1 Dec 2011 23:14:15 +0000 (15:14 -0800)
commit6ea3a268b6263db0c98dbeb8076b1aa710d8f498
treeb49aaf15756136ff9b2616a2ee18803fc870189b
parent1e5aecf6ce72fa16f9e834702d083325646108b7
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
src/pkg/go/doc/comment.go
src/pkg/go/doc/comment_test.go