]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gofmt: clarify documentation re: tab width
authorRobert Griesemer <gri@golang.org>
Mon, 20 Mar 2017 17:58:40 +0000 (10:58 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 20 Mar 2017 18:03:55 +0000 (18:03 +0000)
Fixes #19618.

Change-Id: I0ac450ff717ec1f16eb12758c6bf5e98b5de20e8
Reviewed-on: https://go-review.googlesource.com/38374
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/gofmt/doc.go

index a552d4cde48be65b2e004048df1f2c5076d96e24..13994fdeec4279934e70b2ae5fc1ba96f74eccc9 100644 (file)
@@ -4,7 +4,10 @@
 
 /*
 Gofmt formats Go programs.
-It uses tabs (width = 8) for indentation and blanks for alignment.
+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.
 
 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