mirror of
https://github.com/golang/go
synced 2024-11-18 12:04:57 -07:00
gofmt/doc: gofmt -s output may not be backward compatible
Change-Id: If697ab554e6cb5545d99c6b103ed8bc54f69ed48 Reviewed-on: https://go-review.googlesource.com/4161 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
299862db8f
commit
906aefb038
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user