From fd22b8c457cd291db2774a5526b5be39376212cd Mon Sep 17 00:00:00 2001 From: "hpkfft.com" Date: Thu, 17 Oct 2024 17:45:26 -0700 Subject: [PATCH] Fix typos in Core API docs on error management. (#764) --- docs/api_core.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/api_core.rst b/docs/api_core.rst index 2a480dd5..8497ae70 100644 --- a/docs/api_core.rst +++ b/docs/api_core.rst @@ -1391,49 +1391,49 @@ the reference section on :ref:`class binding `. Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``StopIteration`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: builtin_exception index_error(const char * what = nullptr) Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``IndexError`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: builtin_exception key_error(const char * what = nullptr) Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``KeyError`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: builtin_exception value_error(const char * what = nullptr) Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``ValueError`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: builtin_exception type_error(const char * what = nullptr) Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``TypeError`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: builtin_exception buffer_error(const char * what = nullptr) Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``BufferError`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: builtin_exception import_error(const char * what = nullptr) Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``ImportError`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: builtin_exception attribute_error(const char * what = nullptr) Convenience wrapper to create a :cpp:class:`builtin_exception` C++ exception instance that nanobind will re-raise as a Python ``AttributeError`` exception - boundary. when it crosses the C++ ↔ Python interface. + when it crosses the C++ ↔ Python interface. .. cpp:function:: void register_exception_translator(void (* exception_translator)(const std::exception_ptr &, void*), void * payload = nullptr)