From: Robert Griesemer Date: Thu, 21 Mar 2013 15:47:34 +0000 (-0700) Subject: go/format: fix documentation X-Git-Tag: go1.1rc2~407 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e95c41f30bef016c39f195c5a0e825c39f64f7fe;p=gostls13.git go/format: fix documentation R=r CC=golang-dev https://golang.org/cl/7920048 --- diff --git a/src/pkg/go/format/format.go b/src/pkg/go/format/format.go index 65b0e4e4b7..3d00a645db 100644 --- a/src/pkg/go/format/format.go +++ b/src/pkg/go/format/format.go @@ -69,15 +69,14 @@ func Node(dst io.Writer, fset *token.FileSet, node interface{}) error { return config.Fprint(dst, fset, node) } -// Source formats src in canonical gofmt style and writes the result to dst -// or returns an I/O or syntax error. src is expected to be a syntactically +// Source formats src in canonical gofmt style and returns the result +// or an (I/O or syntax) error. src is expected to be a syntactically // correct Go source file, or a list of Go declarations or statements. // // If src is a partial source file, the leading and trailing space of src // is applied to the result (such that it has the same leading and trailing -// space as src), and the formatted src is indented by the same amount as -// the first line of src containing code. Imports are not sorted for partial -// source files. +// space as src), and the result is indented by the same amount as the first +// line of src containing code. Imports are not sorted for partial source files. // func Source(src []byte) ([]byte, error) { fset := token.NewFileSet()