]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix typo in runqput comment
authorcch123 <buaa.cch@gmail.com>
Thu, 7 Jun 2018 10:08:48 +0000 (10:08 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 7 Jun 2018 14:58:07 +0000 (14:58 +0000)
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>
src/runtime/proc.go

index 9908951544a10516c00529064a1fe6ba64964eab..1267899b8364088c1b8e8c50ca1f05043b7228cf 100644 (file)
@@ -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.