diff options
Diffstat (limited to 'libgo/go/go/format/format.go')
-rw-r--r-- | libgo/go/go/format/format.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libgo/go/go/format/format.go b/libgo/go/go/format/format.go index 65b0e4e4b79..3d00a645dbe 100644 --- a/libgo/go/go/format/format.go +++ b/libgo/go/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() |