]> Cypherpunks repositories - gostls13.git/commitdiff
math/rand: typo fixed in documentation of seedPos
authorPaul PISCUC <paul.piscuc@gmail.com>
Thu, 4 Jan 2018 20:25:04 +0000 (21:25 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 4 Jan 2018 20:27:29 +0000 (20:27 +0000)
In the comment of seedPost, the word: condiiton was changed to: condition

Change-Id: I8967cc0e9f5d37776bada96cc1443c8bf46e1117
Reviewed-on: https://go-review.googlesource.com/86156
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/math/rand/rand.go

index 957bebdddd6abda5e441b4897970af0a40ab5d74..147c92f9e257e3270b936079d68d75d840db6dc6 100644 (file)
@@ -393,7 +393,7 @@ func (r *lockedSource) Seed(seed int64) {
        r.lk.Unlock()
 }
 
-// seedPos implements Seed for a lockedSource without a race condiiton.
+// seedPos implements Seed for a lockedSource without a race condition.
 func (r *lockedSource) seedPos(seed int64, readPos *int8) {
        r.lk.Lock()
        r.src.Seed(seed)