Update 14.1.md (#665)

* Update 14.1.md

* Update 14.1.md
This commit is contained in:
marjune
2019-07-09 10:58:28 +08:00
committed by ᴊ. ᴄʜᴇɴ
parent 9cc2c642cf
commit e45628c48b

View File

@@ -66,8 +66,9 @@ Go 的并发原语提供了良好的并发设计基础:表达程序结构以
```go ```go
var numCores = flag.Int("n", 2, "number of CPU cores to use") var numCores = flag.Int("n", 2, "number of CPU cores to use")
```
in main() 在 main() 中:
```go
flag.Parse() flag.Parse()
runtime.GOMAXPROCS(*numCores) runtime.GOMAXPROCS(*numCores)
``` ```