From: zyckk4 <100814967+zyckk4@users.noreply.github.com> Date: Tue, 18 Apr 2023 11:21:26 +0000 (+0800) Subject: [Doc] Fix a typo in optparse.rst (#103504) X-Git-Tag: v3.12.0b1~514 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e04393b2f64f9e44aefa436cbdac42db98d4ef0;p=thirdparty%2FPython%2Fcpython.git [Doc] Fix a typo in optparse.rst (#103504) --- diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst index 3e29fed0175e..468c3efbe011 100644 --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -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