From 28cb6764fc6f66f5c678466c9af525f1dd6f8cc8 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Tue, 9 Jan 2018 12:30:19 -0500 Subject: [PATCH] misc. typos Found via `codespell` --- docs/advanced/exceptions.rst | 2 +- docs/advanced/functions.rst | 2 +- tests/test_exceptions.cpp | 2 +- tests/test_operator_overloading.py | 2 +- tools/FindPythonLibsNew.cmake | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/advanced/exceptions.rst b/docs/advanced/exceptions.rst index 348337916..3122c3721 100644 --- a/docs/advanced/exceptions.rst +++ b/docs/advanced/exceptions.rst @@ -138,5 +138,5 @@ section. error return without exception set``. Exceptions that you do not plan to handle should simply not be caught, or - may be explicity (re-)thrown to delegate it to the other, + may be explicitly (re-)thrown to delegate it to the other, previously-declared existing exception translators. diff --git a/docs/advanced/functions.rst b/docs/advanced/functions.rst index 3420c5ec3..e3acff06b 100644 --- a/docs/advanced/functions.rst +++ b/docs/advanced/functions.rst @@ -126,7 +126,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor: .. warning:: - Code with invalid return value policies might access unitialized memory or + Code with invalid return value policies might access uninitialized memory or free data structures multiple times, which can lead to hard-to-debug non-determinism and segmentation faults, hence it is worth spending the time to understand all the different options in the table above. diff --git a/tests/test_exceptions.cpp b/tests/test_exceptions.cpp index ae28abb48..cf202143d 100644 --- a/tests/test_exceptions.cpp +++ b/tests/test_exceptions.cpp @@ -9,7 +9,7 @@ #include "pybind11_tests.h" -// A type that should be raised as an exeption in Python +// A type that should be raised as an exception in Python class MyException : public std::exception { public: explicit MyException(const char * m) : message{m} {} diff --git a/tests/test_operator_overloading.py b/tests/test_operator_overloading.py index 0d80e5ed3..86827d2ba 100644 --- a/tests/test_operator_overloading.py +++ b/tests/test_operator_overloading.py @@ -98,7 +98,7 @@ def test_nested(): del c pytest.gc_collect() - del a # Should't delete while abase is still alive + del a # Shouldn't delete while abase is still alive pytest.gc_collect() assert abase.value == 42 diff --git a/tools/FindPythonLibsNew.cmake b/tools/FindPythonLibsNew.cmake index ad3ed48fa..b29b287de 100644 --- a/tools/FindPythonLibsNew.cmake +++ b/tools/FindPythonLibsNew.cmake @@ -1,5 +1,5 @@ # - Find python libraries -# This module finds the libraries corresponding to the Python interpeter +# This module finds the libraries corresponding to the Python interpreter # FindPythonInterp provides. # This code sets the following variables: #