Docs: Fix several errors of examples from the doc (#592)

* [Doc] Fix several errors of examples from the doc

* Add missing operator def.

* Added missing `()`

* Add missing `namespace`.
This commit is contained in:
myd7349
2017-01-13 18:15:52 +08:00
committed by Wenzel Jakob
parent 05bc1ffbe0
commit 9b815ad2e9
5 changed files with 13 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ In C++, the same call can be made using:
.. code-block:: cpp
using pybind11::literals; // to bring in the `_a` literal
using namespace pybind11::literals; // to bring in the `_a` literal
f(1234, "say"_a="hello", "to"_a=some_instance); // keyword call in C++
Unpacking of ``*args`` and ``**kwargs`` is also possible and can be mixed with