Skip to content

Commit

Permalink
runtime: fix typo in the word "preceding"
Browse files Browse the repository at this point in the history
Change-Id: I6d8c8ca0dee972cabfcc95fda23aea25692633a5
Reviewed-on: https://go-review.googlesource.com/65350
Reviewed-by: Daniel Martí <[email protected]>
  • Loading branch information
tklauser authored and ianlancetaylor committed Sep 22, 2017
1 parent 57e7d62 commit 5993a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/race.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func RaceErrors() int {
// between goroutines. These inform the race detector about actual synchronization
// that it can't see for some reason (e.g. synchronization within RaceDisable/RaceEnable
// sections of code).
// RaceAcquire establishes a happens-before relation with the preceeding
// RaceAcquire establishes a happens-before relation with the preceding
// RaceReleaseMerge on addr up to and including the last RaceRelease on addr.
// In terms of the C memory model (C11 §5.1.2.4, §7.17.3),
// RaceAcquire is equivalent to atomic_load(memory_order_acquire).
Expand All @@ -51,7 +51,7 @@ func RaceRelease(addr unsafe.Pointer) {
//go:nosplit

// RaceReleaseMerge is like RaceRelease, but also establishes a happens-before
// relation with the preceeding RaceRelease or RaceReleaseMerge on addr.
// relation with the preceding RaceRelease or RaceReleaseMerge on addr.
//
// In terms of the C memory model, RaceReleaseMerge is equivalent to
// atomic_exchange(memory_order_release).
Expand Down

0 comments on commit 5993a75

Please sign in to comment.