Skip to content

Commit 8e9170e

Browse files
committed
Address Erlend's review
1 parent 2af4d2b commit 8e9170e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/sys.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Operating System Utilities
218218
219219
.. c:function:: FILE* Py_fopen(PyObject *path, const char *mode)
220220
221-
Similar to the :c:func:`!fopen` function, but *path* is a Python object and
221+
Similar to :c:func:`!fopen`, but *path* is a Python object and
222222
an exception is set on error.
223223
224224
*path* must be a :class:`str` object or a :class:`bytes` object.
@@ -227,7 +227,7 @@ Operating System Utilities
227227
On error, set an exception and return ``NULL``.
228228
229229
The file must be closed by :c:func:`Py_fclose` rather than calling directly
230-
``fclose()``.
230+
:c:func:`!fclose`.
231231
232232
The file descriptor is created non-inheritable (:pep:`446`).
233233
@@ -238,7 +238,7 @@ Operating System Utilities
238238
239239
.. c:function:: int Py_fclose(FILE *file)
240240
241-
Closes files that were opened by :c:func:`Py_fopen`.
241+
Close a file that was opened by :c:func:`Py_fopen`.
242242
243243
On success, return ``0``.
244244
On error, return ``EOF`` and ``errno`` is set to indicate the error.

0 commit comments

Comments
 (0)