Fix typo in pycore_bytesobject.h (GH-31914)

This commit is contained in:
jonasdlindner 2022-03-22 00:11:50 +01:00 committed by GitHub
parent 45833b50f0
commit d5d625199e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ extern PyStatus _PyBytes_InitTypes(PyInterpreterState *);
/* Substring Search. /* Substring Search.
Returns the index of the first occurence of Returns the index of the first occurrence of
a substring ("needle") in a larger text ("haystack"). a substring ("needle") in a larger text ("haystack").
If the needle is not found, return -1. If the needle is not found, return -1.
If the needle is found, add offset to the index. If the needle is found, add offset to the index.