mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
422c7fea70
commit
25b5181001
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue