diff --git a/src/runtime/debug.go b/src/runtime/debug.go index 76eeb2e41af..60c03e4f52f 100644 --- a/src/runtime/debug.go +++ b/src/runtime/debug.go @@ -10,10 +10,8 @@ import ( ) // GOMAXPROCS sets the maximum number of CPUs that can be executing -// simultaneously and returns the previous setting. If n < 1, it does not -// change the current setting. -// The number of logical CPUs on the local machine can be queried with NumCPU. -// This call will go away when the scheduler improves. +// simultaneously and returns the previous setting. It defaults to +// the value of runtime.NumCPU. If n < 1, it does not change the current setting. func GOMAXPROCS(n int) int { if GOARCH == "wasm" && n > 1 { n = 1 // WebAssembly has no threads yet, so only one CPU is possible.