1
0
mirror of https://github.com/golang/go synced 2024-09-24 17:10:13 -06:00

- some fine-tuning of godoc templates per r's suggestion

- removed gratuitous newline in go/printer

R=r
DELTA=15  (2 added, 13 deleted, 0 changed)
OCL=30358
CL=30358
This commit is contained in:
Robert Griesemer 2009-06-16 13:44:15 -07:00
parent 536c2aa6ae
commit 4c8fe766af
2 changed files with 2 additions and 13 deletions

View File

@ -19,9 +19,7 @@ import "{ImportPath}"
CONSTANTS
{.repeated section @}
{# the .repeated section, .section idiom skips over nils in the array}
{Decl}
{Doc}
{.end}
{.end}
@ -29,9 +27,7 @@ CONSTANTS
VARIABLES
{.repeated section @}
{Decl}
{Doc}
{.end}
{.end}
@ -39,9 +35,7 @@ VARIABLES
FUNCTIONS
{.repeated section @}
{Decl}
{Doc}
{.end}
{.end}
@ -49,20 +43,14 @@ FUNCTIONS
TYPES
{.repeated section @}
{Decl}
{Doc}
{.repeated section Factories}
{Decl}
{Doc}
{.end}
{.repeated section Methods}
{Decl}
{Doc}
{.end}
{.end}

View File

@ -981,6 +981,8 @@ func (p *printer) program(prog *ast.Program) {
}
}
}
p.print(newline);
}
@ -1010,7 +1012,6 @@ func Fprint(output io.Writer, node interface{}, mode uint) (int, os.Error) {
default:
p.errors <- os.NewError("unsupported node type");
}
p.print(newline);
p.errors <- nil; // no errors
}();
err := <-p.errors; // wait for completion of goroutine