Skip to content

Commit 8098dbb

Browse files
ipriverrandall77
authored andcommitted
runtime: update docs for GOMAXPROCS
https://github.com/golang/go/blob/master/doc/effective_go.html#L3211 is used to update the docs comment for `GOMAXPROCS` function. Fixes #41275 Change-Id: I39f58e93a267c6e9f3ac6638ed51acbe5284ada2 GitHub-Last-Rev: e45c8ac GitHub-Pull-Request: #41276 Reviewed-on: https://go-review.googlesource.com/c/go/+/253537 Reviewed-by: Keith Randall <[email protected]>
1 parent 07d19b2 commit 8098dbb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/runtime/debug.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import (
1010
)
1111

1212
// GOMAXPROCS sets the maximum number of CPUs that can be executing
13-
// simultaneously and returns the previous setting. If n < 1, it does not
14-
// change the current setting.
15-
// The number of logical CPUs on the local machine can be queried with NumCPU.
13+
// simultaneously and returns the previous setting. It defaults to
14+
// the value of runtime.NumCPU. If n < 1, it does not change the current setting.
1615
// This call will go away when the scheduler improves.
1716
func GOMAXPROCS(n int) int {
1817
if GOARCH == "wasm" && n > 1 {

0 commit comments

Comments
 (0)