From 5327c199475c6a46ca92d2fbf8ba01fbaee4e546 Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Sat, 12 Feb 2022 00:42:48 +0900 Subject: [PATCH] docs: Correct minor typos (#3721) --- noxfile.py | 4 ++-- tests/test_sequences_and_iterators.cpp | 2 +- tools/pybind11Config.cmake.in | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index 4adffac2e..8fe37eba0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -2,7 +2,7 @@ import nox nox.options.sessions = ["lint", "tests", "tests_packaging"] -PYTHON_VERISONS = ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] +PYTHON_VERSIONS = ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] @nox.session(reuse_venv=True) @@ -14,7 +14,7 @@ def lint(session: nox.Session) -> None: session.run("pre-commit", "run", "-a") -@nox.session(python=PYTHON_VERISONS) +@nox.session(python=PYTHON_VERSIONS) def tests(session: nox.Session) -> None: """ Run the tests (requires a compiler). diff --git a/tests/test_sequences_and_iterators.cpp b/tests/test_sequences_and_iterators.cpp index addbfe9bb..b867f49a2 100644 --- a/tests/test_sequences_and_iterators.cpp +++ b/tests/test_sequences_and_iterators.cpp @@ -452,7 +452,7 @@ TEST_SUBMODULE(sequences_and_iterators, m) { [](IntPairs &self) { return py::make_value_iterator(self, py::call_guard()); }, py::keep_alive<0, 1>()); - // test_iterater_referencing + // test_iterator_referencing py::class_(m, "NonCopyableInt") .def(py::init()) .def("set", &NonCopyableInt::set) diff --git a/tools/pybind11Config.cmake.in b/tools/pybind11Config.cmake.in index 262020d14..b02615f79 100644 --- a/tools/pybind11Config.cmake.in +++ b/tools/pybind11Config.cmake.in @@ -88,7 +88,7 @@ you can either use the basic targets, or use the FindPython tools: set_target_properties(MyModule2 PROPERTIES INTERPROCEDURAL_OPTIMIZATION ON CXX_VISIBILITY_PRESET ON - VISIBLITY_INLINES_HIDDEN ON) + VISIBILITY_INLINES_HIDDEN ON) If you build targets yourself, you may be interested in stripping the output for reduced size; this is the one other feature that the helper function gives you.