Skip to content

Commit c7496ee

Browse files
committed
Fix spelling and markup in documentation and code comment
* Mark up ``--help`` to avoid generating an en dash * Use forward slash in Unix command line with a dollar sign ($) prompt
1 parent 43d84ea commit c7496ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/library/argparse.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ ArgumentParser objects
173173
* conflict_handler_ - The strategy for resolving conflicting optionals
174174
(usually unnecessary)
175175

176-
* add_help_ - Add a -h/--help option to the parser (default: ``True``)
176+
* add_help_ - Add a ``-h/--help`` option to the parser (default: ``True``)
177177

178178
The following sections describe how each of these are used.
179179

@@ -204,7 +204,7 @@ The help for this program will display ``myprogram.py`` as the program name
204204
-h, --help show this help message and exit
205205
--foo FOO foo help
206206
$ cd ..
207-
$ python subdir\myprogram.py --help
207+
$ python subdir/myprogram.py --help
208208
usage: myprogram.py [-h] [--foo FOO]
209209
210210
optional arguments:

Modules/_io/textio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ textiowrapper_init(textio *self, PyObject *args, PyObject *kwds)
983983
errors);
984984
if (self->encoder == NULL)
985985
goto error;
986-
/* Get the normalized named of the codec */
986+
/* Get the normalized name of the codec */
987987
res = PyObject_GetAttrString(codec_info, "name");
988988
if (res == NULL) {
989989
if (PyErr_ExceptionMatches(PyExc_AttributeError))

0 commit comments

Comments
 (0)