mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 23:08:34 +08:00
fix type: flag.Pars() => flag.Parse() (#269)
This commit is contained in:
@@ -68,7 +68,7 @@ Go 的并发原语提供了良好的并发设计基础:表达程序结构以
|
||||
var numCores = flag.Int("n", 2, "number of CPU cores to use")
|
||||
|
||||
in main()
|
||||
flag.Pars()
|
||||
flag.Parse()
|
||||
runtime.GOMAXPROCS(*numCores)
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user