]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
ctypes docs: Fix array-length reference to "non-negative" from "positive" (GH-32097)
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>
Mon, 28 Mar 2022 03:12:21 +0000 (22:12 -0500)
committerGitHub <noreply@github.com>
Mon, 28 Mar 2022 03:12:21 +0000 (20:12 -0700)
Doc/library/ctypes.rst

index 6e147fc66eb147b6b6e661f627ae52915514b0b3..dca4c74bab7714a32b66fde8cf9b0641cfcf4208 100644 (file)
@@ -2512,7 +2512,7 @@ Arrays and pointers
    Abstract base class for arrays.
 
    The recommended way to create concrete array types is by multiplying any
-   :mod:`ctypes` data type with a positive integer.  Alternatively, you can subclass
+   :mod:`ctypes` data type with a non-negative integer.  Alternatively, you can subclass
    this type and define :attr:`_length_` and :attr:`_type_` class variables.
    Array elements can be read and written using standard
    subscript and slice accesses; for slice reads, the resulting object is