summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/gofmt/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/cmd/gofmt/doc.go')
-rw-r--r--libgo/go/cmd/gofmt/doc.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgo/go/cmd/gofmt/doc.go b/libgo/go/cmd/gofmt/doc.go
index 9d0cd328623..8b22f03f653 100644
--- a/libgo/go/cmd/gofmt/doc.go
+++ b/libgo/go/cmd/gofmt/doc.go
@@ -32,7 +32,8 @@ The flags are:
-w
Do not print reformatted sources to standard output.
If a file's formatting is different from gofmt's, overwrite it
- with gofmt's version.
+ with gofmt's version. If an error occurred during overwriting,
+ the original file is restored from an automatic backup.
Debugging support:
-cpuprofile filename
@@ -98,3 +99,5 @@ This may result in changes that are incompatible with earlier versions of Go.
package main
// BUG(rsc): The implementation of -r is a bit slow.
+// BUG(gri): If -w fails, the restored original file may not have some of the
+// original file attributes.