summaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-10-05 19:18:41 -0700
committerNed Deily <nad@python.org>2018-10-05 22:18:41 -0400
commit28dd737c46d50f4952c61651426c69cc43991bfa (patch)
treeb6fd1fbb84a9f29e072e683b7e4fc6edfb570593 /PC
parent1596fea0a329e1f5e4cce0135724881ca5f1d341 (diff)
downloadcpython-git-28dd737c46d50f4952c61651426c69cc43991bfa.tar.gz
bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions. (GH-9037) (GH-9065)
(cherry picked from commit 3876af4f7c2ef87db6d2d83efc229955968926dd) Co-authored-by: Brendan Gerrity <brerrity@gmail.com>
Diffstat (limited to 'PC')
-rw-r--r--PC/launcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index 4a61975b3c..eb3433ab53 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -1051,7 +1051,7 @@ static BOOL
validate_version(wchar_t * p)
{
/*
- Version information should start with one of 2 or 3,
+ Version information should start with the major version,
Optionally followed by a period and a minor version,
Optionally followed by a minus and one of 32 or 64.
Valid examples:
@@ -1068,7 +1068,7 @@ validate_version(wchar_t * p)
*/
BOOL result = (p != NULL); /* Default to False if null pointer. */
- result = result && iswdigit(*p); /* Result = False if fist string element is not a digit. */
+ result = result && iswdigit(*p); /* Result = False if first string element is not a digit. */
while (result && iswdigit(*p)) /* Require a major version */
++p; /* Skip all leading digit(s) */