diff options
author | Russ Cox <rsc@golang.org> | 2009-10-27 22:47:54 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-27 22:47:54 -0700 |
commit | 7bc607518c0d27a618ddbbf35d1d636da65bc581 (patch) | |
tree | 59cdfb7c6316bd02d9cfe4e298cf6fc40ffc0c4a /src/pkg/go/doc/doc.go | |
parent | b1f2d1c110b2d85468637ad06218428e17281ca2 (diff) | |
download | golang-7bc607518c0d27a618ddbbf35d1d636da65bc581.tar.gz |
files that are okay from the last gofmt round
R=gri
http://go/go-review/1015011
Diffstat (limited to 'src/pkg/go/doc/doc.go')
-rw-r--r-- | src/pkg/go/doc/doc.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/go/doc/doc.go b/src/pkg/go/doc/doc.go index 7413bbc4b..a35ea8c68 100644 --- a/src/pkg/go/doc/doc.go +++ b/src/pkg/go/doc/doc.go @@ -35,8 +35,8 @@ type typeDoc struct { // type docReader struct { doc *ast.CommentGroup; // package documentation, if any - pkgName string; - values *vector.Vector; // list of *ast.GenDecl (consts and vars) + pkgName string; + values *vector.Vector; // list of *ast.GenDecl (consts and vars) types map[string]*typeDoc; funcs map[string]*ast.FuncDecl; bugs *vector.Vector; // list of *ast.CommentGroup @@ -186,7 +186,7 @@ func (doc *docReader) addFunc(fun *ast.FuncDecl) { if doc.pkgName == "os" && tname == "Error" && name != "NewError" && name != "NewSyscallError" { // not a factory function for os.Error - doc.funcs[name] = fun; // treat as ordinary function + doc.funcs[name] = fun; // treat as ordinary function return; } @@ -225,7 +225,7 @@ func (doc *docReader) addDecl(decl ast.Decl) { // would lose GenDecl documentation if the TypeSpec // has documentation as well. doc.addType(&ast.GenDecl{d.Doc, d.Pos(), token.TYPE, noPos, []ast.Spec{spec}, noPos}); - // A new GenDecl node is created, no need to nil out d.Doc. + // A new GenDecl node is created, no need to nil out d.Doc. } } } |