diff options
| author | Robert Griesemer <gri@golang.org> | 2011-12-16 15:43:06 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-12-16 15:43:06 -0800 |
| commit | 541b67d051fbd26f3727d4d13c6d2b025af8a775 (patch) | |
| tree | 6957d10eb2a1e35d13f957015688e4105c6b2a45 /src/make.bash | |
| parent | 72bdd8683506807a16b20f5e1be8740e2c258a73 (diff) | |
| download | go-541b67d051fbd26f3727d4d13c6d2b025af8a775.tar.xz | |
go/printer, gofmt: fine tuning of line spacing
- no empty lines inside empty structs and interfaces
- top-level declarations are separated by a blank line if
a) they are of different kind (e.g. const vs type); or
b) there are documentation comments associated with a
declaration (this is new)
- applied gofmt -w misc src
The actual changes are in go/printer/nodes.go:397-400 (empty structs/interfaces),
and go/printer/printer.go:307-309 (extra line break). The remaining
changes are cleanups w/o changing the existing functionality.
Fixes issue 2570.
R=rsc
CC=golang-dev
https://golang.org/cl/5493057
Diffstat (limited to 'src/make.bash')
0 files changed, 0 insertions, 0 deletions
