[3.11] gh-107298: Fix C API Buffer documentation (GH-108011) by miss-islington · Pull Request #108041 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions Doc/c-api/buffer.rst
2 changes: 1 addition & 1 deletion Doc/c-api/typeobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ Buffer Object Structures
Except for point (3), an implementation of this function MUST take these
steps:

(1) Check if the request can be met. If not, raise :c:data:`PyExc_BufferError`,
(1) Check if the request can be met. If not, raise :exc:`BufferError`,
set :c:expr:`view->obj` to ``NULL`` and return ``-1``.

(2) Fill in the requested fields.
Expand Down
1 change: 0 additions & 1 deletion Doc/tools/.nitignore