Skip to content

Commit 0b3f44e

Browse files
Unknownjagerman
Unknown
authored andcommitted
Trivial typos
Non-user facing. Found using `codespell -q 3`
1 parent 5c7a290 commit 0b3f44e

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

docs/advanced/cast/eigen.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ consideration: by default, numpy matrices and eigen matrices are *not* storage
4141
compatible.
4242

4343
If the numpy matrix cannot be used as is (either because its types differ, e.g.
44-
passing an array of integers to an Eigen paramater requiring doubles, or
44+
passing an array of integers to an Eigen parameter requiring doubles, or
4545
because the storage is incompatible), pybind11 makes a temporary copy and
4646
passes the copy instead.
4747

@@ -89,7 +89,7 @@ as dictated by the binding function's return value policy (see the
8989
documentation on :ref:`return_value_policies` for full details). That means,
9090
without an explicit return value policy, lvalue references will be copied and
9191
pointers will be managed by pybind11. In order to avoid copying, you should
92-
explictly specify an appropriate return value policy, as in the following
92+
explicitly specify an appropriate return value policy, as in the following
9393
example:
9494

9595
.. code-block:: cpp
@@ -287,7 +287,7 @@ On the other hand, pybind11 allows you to pass 1-dimensional arrays of length N
287287
as Eigen parameters. If the Eigen type can hold a column vector of length N it
288288
will be passed as such a column vector. If not, but the Eigen type constraints
289289
will accept a row vector, it will be passed as a row vector. (The column
290-
vector takes precendence when both are supported, for example, when passing a
290+
vector takes precedence when both are supported, for example, when passing a
291291
1D numpy array to a MatrixXd argument). Note that the type need not be
292292
expicitly a vector: it is permitted to pass a 1D numpy array of size 5 to an
293293
Eigen ``Matrix<double, Dynamic, 5>``: you would end up with a 1x5 Eigen matrix.

docs/advanced/functions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Overload resolution order
473473
When a function or method with multiple overloads is called from Python,
474474
pybind11 determines which overload to call in two passes. The first pass
475475
attempts to call each overload without allowing argument conversion (as if
476-
every argument had been specified as ``py::arg().noconvert()`` as decribed
476+
every argument had been specified as ``py::arg().noconvert()`` as described
477477
above).
478478

479479
If no overload succeeds in the no-conversion first pass, a second pass is

include/pybind11/detail/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ template <size_t... IPrev, size_t I, bool B, bool... Bs> struct select_indices_i
471471
: select_indices_impl<conditional_t<B, index_sequence<IPrev..., I>, index_sequence<IPrev...>>, I + 1, Bs...> {};
472472
template <bool... Bs> using select_indices = typename select_indices_impl<index_sequence<>, 0, Bs...>::type;
473473

474-
/// Backports of std::bool_constant and std::negation to accomodate older compilers
474+
/// Backports of std::bool_constant and std::negation to accommodate older compilers
475475
template <bool B> using bool_constant = std::integral_constant<bool, B>;
476476
template <typename T> struct negation : bool_constant<!T::value> { };
477477

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ max-line-length = 99
66
show_source = True
77
exclude = .git, __pycache__, build, dist, docs, tools, venv
88
ignore =
9-
# required for pretty matrix formating: multiple spaces after `,` and `[`
9+
# required for pretty matrix formatting: multiple spaces after `,` and `[`
1010
E201, E241

tests/test_factory_constructors.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <cmath>
1414

1515
// Classes for testing python construction via C++ factory function:
16-
// Not publically constructible, copyable, or movable:
16+
// Not publicly constructible, copyable, or movable:
1717
class TestFactory1 {
1818
friend class TestFactoryHelper;
1919
TestFactory1() : value("(empty)") { print_default_created(this); }

tests/test_virtual_functions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ TEST_SUBMODULE(virtual_functions, m) {
249249
m.def("dispatch_issue_go", [](const Base * b) { return b->dispatch(); });
250250

251251
// test_override_ref
252-
// #392/397: overridding reference-returning functions
252+
// #392/397: overriding reference-returning functions
253253
class OverrideTest {
254254
public:
255255
struct A { std::string value = "hi"; };

tests/test_virtual_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def dispatch(self):
227227

228228

229229
def test_override_ref():
230-
"""#392/397: overridding reference-returning functions"""
230+
"""#392/397: overriding reference-returning functions"""
231231
o = m.OverrideTest("asdf")
232232

233233
# Not allowed (see associated .cpp comment)

tools/check-style.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# 4. missing space between keyword and parenthesis, e.g.: for(, if(, while(
1111
# 5. Missing space between right parenthesis and brace, e.g. 'for (...){'
1212
# 6. opening brace on its own line. It should always be on the same line as the
13-
# if/while/for/do statment.
13+
# if/while/for/do statement.
1414
#
1515
# Invoke as: tools/check-style.sh
1616
#

0 commit comments

Comments
 (0)