Skip to content

Commit e8bca91

Browse files
authored
Merge pull request #1082 from stupidfive/patch-2
Fix command not monospaced.
2 parents 3dbde43 + 21c9edc commit e8bca91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/01.3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ I usually use this command to clean up my files before I upload my project to Gi
4949

5050
The people who are working with C/C++ should know that people are always arguing about which code style is better: K&R-style or ANSI-style. However in Go, there is only one code style which is enforced. For example, left braces must only be inserted at the end of lines, and they cannot be on their own lines, otherwise you will get compile errors! Fortunately, you don't have to remember these rules. `go fmt` does this job for you. Just execute the command `go fmt <File name>.go` in terminal. I don't use this command very much because IDEs usually execute this command automatically when you save source files. I will talk more about IDEs in the next section.
5151

52-
`go fmt` is just an alias, which runs the command 'gofmt -l -w' on the packages named by the import paths.
52+
`go fmt` is just an alias, which runs the command `gofmt -l -w` on the packages named by the import paths.
5353

5454
We usually use `gofmt -w` instead of `go fmt`. The latter will not rewrite your source files after formatting code. `gofmt -w src` formats the whole project.
5555

0 commit comments

Comments
 (0)