summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2017-03-20 13:08:26 -0700
committerRobert Griesemer <gri@golang.org>2017-03-20 20:13:34 +0000
commit25b51810014cefb8dba31321fcf40eb1a008fc3e (patch)
tree2bfd1bb5ca2f1864727aecfe5c1fd4c7da2502f4
parent422c7fea70424a1443ad2841aabd262dc01bd9fe (diff)
downloadgo-git-25b51810014cefb8dba31321fcf40eb1a008fc3e.tar.gz
cmd/gofmt: clarify doc string even more
Since "columns of alignment" are terminated whenever indentation changes from one line to the next, alignment with spaces will work independent of the actually chosen tab width. Don't mention tab width anymore. Follow-up on https://golang.org/cl/38374/. For #19618. Change-Id: I58e47dfde57834f56a98d9119670757a12fb9c41 Reviewed-on: https://go-review.googlesource.com/38379 Reviewed-by: Rob Pike <r@golang.org>
-rw-r--r--src/cmd/gofmt/doc.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/gofmt/doc.go b/src/cmd/gofmt/doc.go
index 13994fdeec..e340665594 100644
--- a/src/cmd/gofmt/doc.go
+++ b/src/cmd/gofmt/doc.go
@@ -5,9 +5,7 @@
/*
Gofmt formats Go programs.
It uses tabs for indentation and blanks for alignment.
-
-Alignment assumes that an editor is using a fixed-width
-font and that a tab corresponds to 8 spaces.
+Alignment assumes that an editor is using a fixed-width font.
Without an explicit path, it processes the standard input. Given a file,
it operates on that file; given a directory, it operates on all .go files in