summaryrefslogtreecommitdiffstats
path: root/Doc/library/operator.rst
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2019-04-08 09:14:43 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-04-08 09:14:43 (GMT)
commitf4efa312d14bc792f59514c5696e29041e05deca (patch)
treedc04b50522727f344e518a177bd80acf5461c042 /Doc/library/operator.rst
parent96be3400a97946b0b3d032dd8c3c0561786796f1 (diff)
downloadcpython-f4efa312d14bc792f59514c5696e29041e05deca.zip
cpython-f4efa312d14bc792f59514c5696e29041e05deca.tar.gz
cpython-f4efa312d14bc792f59514c5696e29041e05deca.tar.bz2
Correct "inplace" with "in-place" (GH-10480)
Diffstat (limited to 'Doc/library/operator.rst')
-rw-r--r--Doc/library/operator.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst
index 250cbb6..5d0ea7d 100644
--- a/Doc/library/operator.rst
+++ b/Doc/library/operator.rst
@@ -440,8 +440,8 @@ Python syntax and the functions in the :mod:`operator` module.
| Ordering | ``a > b`` | ``gt(a, b)`` |
+-----------------------+-------------------------+---------------------------------------+
-Inplace Operators
------------------
+In-place Operators
+------------------
Many operations have an "in-place" version. Listed below are functions
providing a more primitive access to in-place operators than the usual syntax
@@ -464,7 +464,7 @@ value is computed, but not assigned back to the input variable:
>>> a
'hello'
-For mutable targets such as lists and dictionaries, the inplace method
+For mutable targets such as lists and dictionaries, the in-place method
will perform the update, so no subsequent assignment is necessary:
>>> s = ['h', 'e', 'l', 'l', 'o']