Skip to content

Commit d6203d9

Browse files
committed
Fix doc role typos in argparse.rst.
1 parent a4e774f commit d6203d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ Action classes
12351235
Action classes implement the Action API, a callable which returns a callable
12361236
which processes arguments from the command-line. Any object which follows
12371237
this API may be passed as the ``action`` parameter to
1238-
:method:`add_argument`.
1238+
:meth:`add_argument`.
12391239

12401240
.. class:: Action(option_strings, dest, nargs=None, const=None, default=None,
12411241
type=None, choices=None, required=False, help=None,
@@ -1244,7 +1244,7 @@ this API may be passed as the ``action`` parameter to
12441244
Action objects are used by an ArgumentParser to represent the information
12451245
needed to parse a single argument from one or more strings from the
12461246
command line. The Action class must accept the two positional arguments
1247-
plus any keyword arguments passed to :method:`ArgumentParser.add_argument`
1247+
plus any keyword arguments passed to :meth:`ArgumentParser.add_argument`
12481248
except for the ``action`` itself.
12491249

12501250
Instances of Action (or return value of any callable to the ``action``

0 commit comments

Comments
 (0)