Skip to content

Commit

Permalink
[Doc] Fix a typo in optparse.rst (#103504)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyckk4 authored Apr 18, 2023
1 parent c3d015c commit 4e04393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/optparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e04393

Please sign in to comment.