Skip to content

Commit 25b5181

Browse files
committed
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 <[email protected]>
1 parent 422c7fe commit 25b5181

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cmd/gofmt/doc.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
/*
66
Gofmt formats Go programs.
77
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.
8+
Alignment assumes that an editor is using a fixed-width font.
119
1210
Without an explicit path, it processes the standard input. Given a file,
1311
it operates on that file; given a directory, it operates on all .go files in

0 commit comments

Comments
 (0)