Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Aug 23, 2023
1 parent 60b56f1 commit 0131868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Include/cpython/pyatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _Py_atomic_compare_exchange_ssize(Py_ssize_t *address, Py_ssize_t expected, Py_s
static inline int
_Py_atomic_compare_exchange_ptr(void *address, void *expected, void *value);

// Atomically replaces `*address` with value and returns the previously value of *address.
// Atomically replaces `*address` with `value` and returns the previous value of `*address`.
static inline int
_Py_atomic_exchange_int(int *address, int value);

Expand Down Expand Up @@ -149,7 +149,7 @@ _Py_atomic_exchange_ssize(Py_ssize_t *address, Py_ssize_t value);
static inline void *
_Py_atomic_exchange_ptr(void *address, void *value);

// Performs `*address &= value` atomically and returns the previous value of *address.
// Performs `*address &= value` atomically and returns the previous value of `*address`.
static inline uint8_t
_Py_atomic_and_uint8(uint8_t *address, uint8_t value);

Expand All @@ -165,7 +165,7 @@ _Py_atomic_and_uint64(uint64_t *address, uint64_t value);
static inline uintptr_t
_Py_atomic_and_uintptr(uintptr_t *address, uintptr_t value);

// Performs `*address |= value` atomically and returns the previous value of *address.
// Performs `*address |= value` atomically and returns the previous value of `*address`.
static inline uint8_t
_Py_atomic_or_uint8(uint8_t *address, uint8_t value);

Expand Down

0 comments on commit 0131868

Please sign in to comment.