1
0
mirror of https://github.com/golang/go synced 2024-10-04 06:21:23 -06:00
go/src/cmd/gofmt
Robert Griesemer dddc8b193f cmd/gofmt: fix gofmt -s for 3-index slices
3-index slices of the form s[:len(s):len(s)]
cannot be simplified to s[::len(s)].

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/108330043
2014-07-01 10:40:27 -07:00
..
testdata cmd/gofmt: fix gofmt -s for 3-index slices 2014-07-01 10:40:27 -07:00
doc.go cmd/gofmt: remove -tabwidth and -tabs flags 2014-01-14 11:10:56 -08:00
gofmt_test.go gofmt/main: Added removal of empty declaration groups. 2014-07-01 09:32:03 -07:00
gofmt.go cmd/gofmt: remove -tabwidth and -tabs flags 2014-01-14 11:10:56 -08:00
long_test.go cmd/gofmt: remove -tabwidth and -tabs flags 2014-01-14 11:10:56 -08:00
rewrite.go gofmt: remove redundant check in rewriter 2014-06-30 14:40:12 -07:00
simplify.go cmd/gofmt: fix gofmt -s for 3-index slices 2014-07-01 10:40:27 -07:00