Skip to content

Commit 4e04393

Browse files
authored
[Doc] Fix a typo in optparse.rst (#103504)
1 parent c3d015c commit 4e04393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/optparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ Features of note:
20272027
values.ensure_value(attr, value)
20282028

20292029
If the ``attr`` attribute of ``values`` doesn't exist or is ``None``, then
2030-
ensure_value() first sets it to ``value``, and then returns 'value. This is
2030+
ensure_value() first sets it to ``value``, and then returns ``value``. This is
20312031
very handy for actions like ``"extend"``, ``"append"``, and ``"count"``, all
20322032
of which accumulate data in a variable and expect that variable to be of a
20332033
certain type (a list for the first two, an integer for the latter). Using

0 commit comments

Comments
 (0)