Skip to content

Commit ed0a72e

Browse files
luzpazwjakob
authored andcommitted
misc. typos
Found via `codespell`
1 parent c8f07b5 commit ed0a72e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/advanced/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,5 @@ section.
138138
error return without exception set``.
139139

140140
Exceptions that you do not plan to handle should simply not be caught, or
141-
may be explicity (re-)thrown to delegate it to the other,
141+
may be explicitly (re-)thrown to delegate it to the other,
142142
previously-declared existing exception translators.

docs/advanced/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor:
126126
127127
.. warning::
128128

129-
Code with invalid return value policies might access unitialized memory or
129+
Code with invalid return value policies might access uninitialized memory or
130130
free data structures multiple times, which can lead to hard-to-debug
131131
non-determinism and segmentation faults, hence it is worth spending the
132132
time to understand all the different options in the table above.

tests/test_exceptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "pybind11_tests.h"
1111

12-
// A type that should be raised as an exeption in Python
12+
// A type that should be raised as an exception in Python
1313
class MyException : public std::exception {
1414
public:
1515
explicit MyException(const char * m) : message{m} {}

tests/test_operator_overloading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_nested():
9898

9999
del c
100100
pytest.gc_collect()
101-
del a # Should't delete while abase is still alive
101+
del a # Shouldn't delete while abase is still alive
102102
pytest.gc_collect()
103103

104104
assert abase.value == 42

tools/FindPythonLibsNew.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# - Find python libraries
2-
# This module finds the libraries corresponding to the Python interpeter
2+
# This module finds the libraries corresponding to the Python interpreter
33
# FindPythonInterp provides.
44
# This code sets the following variables:
55
#

0 commit comments

Comments
 (0)