Skip to content

Commit 01ac5b8

Browse files
committed
cmd/gofmt: clarify documentation re: tab width
Fixes #19618. Change-Id: I0ac450ff717ec1f16eb12758c6bf5e98b5de20e8 Reviewed-on: https://go-review.googlesource.com/38374 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent eb6c1dd commit 01ac5b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmd/gofmt/doc.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
/*
66
Gofmt formats Go programs.
7-
It uses tabs (width = 8) for indentation and blanks for alignment.
7+
It uses tabs for indentation and blanks for alignment.
8+
9+
Alignment assumes that an editor is using a fixed-width
10+
font and that a tab corresponds to 8 spaces.
811
912
Without an explicit path, it processes the standard input. Given a file,
1013
it operates on that file; given a directory, it operates on all .go files in

0 commit comments

Comments
 (0)