diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index 93bad190b69d2d6..32472af0f6a1632 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -42,9 +42,9 @@ Simple objects such as :class:`bytes` and :class:`bytearray` expose their underlying buffer in byte-oriented form. Other forms are possible; for example, the elements exposed by an :class:`array.array` can be multi-byte values. -An example consumer of the buffer interface is the :meth:`!write` +An example consumer of the buffer interface is the :meth:`~io.BufferedIOBase.write` method of file objects: any object that can export a series of bytes through -the buffer interface can be written to a file. While :meth:`!write` only +the buffer interface can be written to a file. While :meth:`~io.BufferedIOBase.write` only needs read-only access to the internal contents of the object passed to it, other methods such as :meth:`~io.BufferedIOBase.readinto` need write access to the contents of their argument. The buffer interface allows objects to