@@ -685,7 +685,7 @@ Export API
685685      - ``1`` for most significant digit first 
686686      - ``-1`` for least significant digit first 
687687
688-    .. c:member:: int8_t endian  
688+    .. c:member:: int8_t digit_endianness  
689689
690690      Digit endianness: 
691691
@@ -772,19 +772,20 @@ The :c:type:`PyLongWriter` API can be used to import an integer.
772772
773773   Create a :c:type: `PyLongWriter `. 
774774
775-    On success, set  *\* digits 
775+    On success, allocate  *\* digits 
776776   On error, set an exception and return ``NULL ``. 
777777
778778   *negative * is ``1 `` if the number is negative, or ``0 `` otherwise. 
779779
780780   *ndigits * is the number of digits in the *digits * array. It must be 
781-    greater than or equal to  0. 
781+    greater than 0. 
782782
783-    The caller can either initialize the array of digits *digits * and then call  
784-    :c:func: `PyLongWriter_Finish ` to get a Python :class: `int `,  or call  
783+    The caller can either initialize the array of digits *digits * and then 
784+    either call  :c:func: `PyLongWriter_Finish ` to get a Python :class: `int ` or 
785785   :c:func: `PyLongWriter_Discard ` to destroy the writer instance.  Digits must 
786-    be in the range [``0 ``; ``(1 << sys.int_info.bits_per_digit) - 1 ``].  Unused 
787-    digits must be set to ``0 ``. 
786+    be in the range [``0 ``; ``(1 << bits_per_digit) - 1 ``]  (where the 
787+    :c:struct: `~PyLongLayout.bits_per_digit ` is the number of bits per digit). 
788+    The unused most-significant digits must be set to ``0``. 
788789
789790
790791.. c:function:: PyObject* PyLongWriter_Finish(PyLongWriter *writer)  
@@ -797,7 +798,11 @@ The :c:type:`PyLongWriter` API can be used to import an integer.
797798   The function takes care of normalizing the digits and converts the object 
798799   to a compact integer if needed. 
799800
801+    The writer instance is invalid after the call. 
802+ 
800803
801804.. c :function :: void  PyLongWriter_Discard (PyLongWriter *writer)   
802805
803806   Discard a :c:type: `PyLongWriter ` created by :c:func: `PyLongWriter_Create `. 
807+ 
808+    The writer instance is invalid after the call. 
0 commit comments