Skip to content

Commit e0afd1d

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent c67a22d commit e0afd1d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Doc/c-api/unicode.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ These APIs can be used for fast direct character conversions:
312312
Convert *str* characters to lower case, store result in *buffer*, which should be
313313
able to hold as many characters needed for *str* to be lower cased, and
314314
return the number of characters stored. If at some point a buffer overflow
315-
is detected, an :exc:`ValueError` is raised and ``-1`` is returned.
315+
is detected, a :exc:`ValueError` is raised and ``-1`` is returned.
316316
317-
*str_size*, *buf_size* and the result are number of UCS-4 characters.
317+
*str_size*, *buf_size* and the result are the number of UCS-4 characters.
318318
319319
In Unicode 16.0, any character can be lowercased into a buffer of *buf_size* ``2``.
320320
See also :c:macro:`PyUCS4_CASE_CONVERSION_BUFFER_SIZE`.
@@ -327,7 +327,7 @@ These APIs can be used for fast direct character conversions:
327327
Convert *str* characters to upper case, store result in *buffer*, which should be
328328
able to hold as many characters needed for *str* to be upper cased, and
329329
return the number of characters stored. If at some point a buffer overflow
330-
is detected, an :exc:`ValueError` is raised and ``-1`` is returned.
330+
is detected, a :exc:`ValueError` is raised and ``-1`` is returned.
331331
332332
*str_size*, *buf_size* and the result are number of UCS-4 characters.
333333
@@ -342,7 +342,7 @@ These APIs can be used for fast direct character conversions:
342342
Convert *str* characters to title case, store result in *buffer*, which should be
343343
able to hold as many characters needed for *str* to be title cased, and
344344
return the number of characters stored. If at some point a buffer overflow
345-
is detected, an :exc:`ValueError` is raised and ``-1`` is returned.
345+
is detected, a :exc:`ValueError` is raised and ``-1`` is returned.
346346
347347
*str_size*, *buf_size* and the result are number of UCS-4 characters.
348348
@@ -357,7 +357,7 @@ These APIs can be used for fast direct character conversions:
357357
Foldcase *str* characters, store result in *buffer*, which should be
358358
able to hold as many characters needed for *str* to be foldcased, and
359359
return the number of characters stored. If at some point a buffer overflow
360-
is detected, an :exc:`ValueError` is raised and ``-1`` is returned.
360+
is detected, a :exc:`ValueError` is raised and ``-1`` is returned.
361361
362362
*str_size*, *buf_size* and the result are number of UCS-4 characters.
363363
@@ -366,6 +366,7 @@ These APIs can be used for fast direct character conversions:
366366
367367
.. versionadded:: next
368368
369+
369370
.. c:macro:: PyUCS4_CASE_CONVERSION_BUFFER_SIZE
370371
371372
The minimum buffer size needed for any call to :c:func:`PyUCS4_ToLower`,

0 commit comments

Comments
 (0)