summaryrefslogtreecommitdiffstats
path: root/Doc/library/__main__.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/__main__.rst')
-rw-r--r--Doc/library/__main__.rst2
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