1
0
mirror of https://github.com/golang/go synced 2024-11-22 21:00:04 -07:00

Fix documentation for CompareAndSwap

This commit is contained in:
Jeff Wentworth 2021-08-14 18:40:22 +09:00 committed by GitHub
parent 7eaabae84d
commit 41f7870792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ func (v *Value) Swap(new interface{}) (old interface{}) {
}
}
// CompareAndSwapPointer executes the compare-and-swap operation for the Value.
// CompareAndSwap executes the compare-and-swap operation for the Value.
//
// All calls to CompareAndSwap for a given Value must use values of the same
// concrete type. CompareAndSwap of an inconsistent type panics, as does