Skip to content

Commit 11e8072

Browse files
committed
Use correct ref for atomic
1 parent 688b25a commit 11e8072

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/stdtypes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ application).
14671467
threads and will not corrupt the list.
14681468

14691469
The following operations return new objects and appear
1470-
:term:`atomic <atomic operations>` to other threads:
1470+
:term:`atomic <atomic operation>` to other threads:
14711471

14721472
.. code-block::
14731473
:class: good
@@ -1477,15 +1477,15 @@ application).
14771477
lst.copy() # returns a shallow copy of the list
14781478
14791479
Methods that only operate on a single elements with no shifting required are
1480-
:term:`atomic <atomic operations>`:
1480+
:term:`atomic <atomic operation>`:
14811481

14821482
.. code-block::
14831483
:class: good
14841484
14851485
lst.append(x) # append to the end of the list, no shifting required
14861486
lst.pop() # pop element from the end of the list, no shifting required
14871487
1488-
The :meth:`~list.clear` method is also :term:`atomic <atomic operations>`.
1488+
The :meth:`~list.clear` method is also :term:`atomic <atomic operation>`.
14891489
Other threads cannot observe elements being removed.
14901490

14911491
The :meth:`~list.sort` method is not :term:`atomic <atomic operation>`.

0 commit comments

Comments
 (0)