]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/internal/atomic: remove incorrect pointer indirection in comment
authorXing Gao <18340825824@163.com>
Tue, 22 Jun 2021 02:12:29 +0000 (02:12 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 22 Jun 2021 14:07:22 +0000 (14:07 +0000)
Change-Id: I9d743b7f6b001158299bea4af4aede678654bc8e
GitHub-Last-Rev: 7e07834abc861e21030fe4a8eb323bac01e18f7a
GitHub-Pull-Request: golang/go#46851
Reviewed-on: https://go-review.googlesource.com/c/go/+/329730
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ben Shi <powerman1st@163.com>
src/runtime/internal/atomic/atomic_386.s

index 37318e0ad76a202e305d319cbf1e291460c7d746..724d5152313bba596cff6423a455b3b79279827f 100644 (file)
@@ -65,7 +65,7 @@ TEXT ·Xaddint64(SB), NOSPLIT, $0-20
 
 // bool ·Cas64(uint64 *val, uint64 old, uint64 new)
 // Atomically:
-//     if(*val == *old){
+//     if(*val == old){
 //             *val = new;
 //             return 1;
 //     } else {