Fix typo in Doc/library/textwrap.rst (#110328)

"One problem with this is algorithm is that [...]" -> "One problem with this algorithm is that [...]"
This commit is contained in:
InSync 2023-10-06 21:25:02 +07:00 committed by GitHub
parent d023d4166b
commit 02cdaefe9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ hyphenated words; only then will long words be broken if necessary, unless
However, the sentence detection algorithm is imperfect: it assumes that a
sentence ending consists of a lowercase letter followed by one of ``'.'``,
``'!'``, or ``'?'``, possibly followed by one of ``'"'`` or ``"'"``,
followed by a space. One problem with this is algorithm is that it is
followed by a space. One problem with this algorithm is that it is
unable to detect the difference between "Dr." in ::
[...] Dr. Frankenstein's monster [...]