diff options
Diffstat (limited to 'libgo/go/cmd/gofmt/doc.go')
-rw-r--r-- | libgo/go/cmd/gofmt/doc.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/go/cmd/gofmt/doc.go b/libgo/go/cmd/gofmt/doc.go index 3fc0439548f..9d0cd328623 100644 --- a/libgo/go/cmd/gofmt/doc.go +++ b/libgo/go/cmd/gofmt/doc.go @@ -87,6 +87,13 @@ When invoked with -s gofmt will make the following source transformations where for x, _ = range v {...} will be simplified to: for x = range v {...} + + A range of the form: + for _ = range v {...} + will be simplified to: + for range v {...} + +This may result in changes that are incompatible with earlier versions of Go. */ package main |