]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34565: Change a PC/launcher.c comment to accurately describe valid major versions...
authorBrendan Gerrity <brerrity@gmail.com>
Tue, 4 Sep 2018 16:35:46 +0000 (09:35 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Tue, 4 Sep 2018 16:35:46 +0000 (09:35 -0700)
PC/launcher.c

index fcc3abb63de6c5e3162f3985efc5b0944df568bc..75a06c2310c81bf65d0d8d9cd8dca8608e07f434 100644 (file)
@@ -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) */