We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f8447 commit 5806318Copy full SHA for 5806318
docs/advanced/functions.rst
@@ -455,7 +455,7 @@ object, such as:
455
m.def("supports_float", [](double f) { return 0.5 * f; }, py::arg("f"));
456
m.def("only_float", [](double f) { return 0.5 * f; }, py::arg("f").noconvert());
457
458
-``supports_float`` will accept any argument that implments ``__float__``.
+``supports_float`` will accept any argument that implements ``__float__``.
459
``only_float`` will only accept a float or int argument. Anything else will fail with a ``TypeError``:
460
461
.. note::
0 commit comments