aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorcch123 <buaa.cch@gmail.com>2018-06-07 10:08:48 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-06-07 14:58:07 +0000
commitcf901a7240a37ec24d68c4da5b045fba7cf8bfd9 (patch)
tree0e99490ae51979f872709145eff50647e9386608 /src/runtime
parent35778aa4972e5c005877fe77970183281fab1d44 (diff)
downloadgo-cf901a7240a37ec24d68c4da5b045fba7cf8bfd9.tar.xz
runtime: fix typo in runqput comment
Change-Id: Idd88a1d9420545e3e326f8e3b57a38d8c7515555 GitHub-Last-Rev: 59528f552238eb4070cb9a66c1dbfafd6bc3808d GitHub-Pull-Request: golang/go#25779 Reviewed-on: https://go-review.googlesource.com/116935 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/proc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 9908951544..1267899b83 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -4777,7 +4777,7 @@ func runqempty(_p_ *p) bool {
const randomizeScheduler = raceenabled
// runqput tries to put g on the local runnable queue.
-// If next if false, runqput adds g to the tail of the runnable queue.
+// If next is false, runqput adds g to the tail of the runnable queue.
// If next is true, runqput puts g in the _p_.runnext slot.
// If the run queue is full, runnext puts g on the global queue.
// Executed only by the owner P.