Skip to content

Commit 7320499

Browse files
committed
Fix BufferedIOBase.write() link in buffer.rst
1 parent 6079182 commit 7320499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/buffer.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Simple objects such as :class:`bytes` and :class:`bytearray` expose their
4242
underlying buffer in byte-oriented form. Other forms are possible; for example,
4343
the elements exposed by an :class:`array.array` can be multi-byte values.
4444

45-
An example consumer of the buffer interface is the :meth:`!write`
45+
An example consumer of the buffer interface is the :meth:`~io.BufferedIOBase.write`
4646
method of file objects: any object that can export a series of bytes through
47-
the buffer interface can be written to a file. While :meth:`!write` only
47+
the buffer interface can be written to a file. While :meth:`~io.BufferedIOBase.write` only
4848
needs read-only access to the internal contents of the object passed to it,
4949
other methods such as :meth:`~io.BufferedIOBase.readinto` need write access
5050
to the contents of their argument. The buffer interface allows objects to

0 commit comments

Comments
 (0)