]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Doc] Fix a typo in optparse.rst (#103504)
authorzyckk4 <100814967+zyckk4@users.noreply.github.com>
Tue, 18 Apr 2023 11:21:26 +0000 (19:21 +0800)
committerGitHub <noreply@github.com>
Tue, 18 Apr 2023 11:21:26 +0000 (16:51 +0530)
Doc/library/optparse.rst

index 3e29fed0175e04f05b6914a77b7ccac62ede40ab..468c3efbe011486842e797bbeb41ebcc548eaa86 100644 (file)
@@ -2027,7 +2027,7 @@ Features of note:
      values.ensure_value(attr, value)
 
   If the ``attr`` attribute of ``values`` doesn't exist or is ``None``, then
-  ensure_value() first sets it to ``value``, and then returns 'value. This is
+  ensure_value() first sets it to ``value``, and then returns ``value``. This is
   very handy for actions like ``"extend"``, ``"append"``, and ``"count"``, all
   of which accumulate data in a variable and expect that variable to be of a
   certain type (a list for the first two, an integer for the latter).  Using