diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2023-11-17 01:05:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 01:05:16 (GMT) |
commit | 8cd70eefc7f3363cfa0d43f34522c3072fa9e160 (patch) | |
tree | 78360906f4a003066eb697b45653e900607b473f /Doc | |
parent | f92ea63f6f2c37917fc095a1bc036a8b0c45a084 (diff) | |
download | cpython-8cd70eefc7f3363cfa0d43f34522c3072fa9e160.zip cpython-8cd70eefc7f3363cfa0d43f34522c3072fa9e160.tar.gz cpython-8cd70eefc7f3363cfa0d43f34522c3072fa9e160.tar.bz2 |
gh-112165: Fix typo in `__main__.py` (#112183)
Change '[2]' to '[1]' to get second argument.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/__main__.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 24a32b3..c999253 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -227,7 +227,7 @@ students:: import sys from .student import search_students - student_name = sys.argv[2] if len(sys.argv) >= 2 else '' + student_name = sys.argv[1] if len(sys.argv) >= 2 else '' print(f'Found student: {search_students(student_name)}') Note that ``from .student import search_students`` is an example of a relative |