mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-05 23:13:36 +08:00
fixed missing semicolon in documentation
This commit is contained in:
parent
b456ec789d
commit
10e62e168b
@ -10,7 +10,7 @@ present:
|
|||||||
|
|
||||||
#include <pybind11/pybind11.h>
|
#include <pybind11/pybind11.h>
|
||||||
|
|
||||||
namespace py = pybind11
|
namespace py = pybind11;
|
||||||
|
|
||||||
Operator overloading
|
Operator overloading
|
||||||
====================
|
====================
|
||||||
|
|||||||
@ -85,7 +85,7 @@ a file named :file:`example.cpp` with the following contents:
|
|||||||
return i + j;
|
return i + j;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace py = pybind11
|
namespace py = pybind11;
|
||||||
|
|
||||||
PYBIND_PLUGIN(example) {
|
PYBIND_PLUGIN(example) {
|
||||||
py::module m("example", "pybind11 example plugin");
|
py::module m("example", "pybind11 example plugin");
|
||||||
|
|||||||
@ -25,7 +25,7 @@ The binding code for ``Pet`` looks as follows:
|
|||||||
|
|
||||||
#include <pybind11/pybind11.h>
|
#include <pybind11/pybind11.h>
|
||||||
|
|
||||||
namespace py = pybind11
|
namespace py = pybind11;
|
||||||
|
|
||||||
PYBIND_PLUGIN(example) {
|
PYBIND_PLUGIN(example) {
|
||||||
py::module m("example", "pybind11 example plugin");
|
py::module m("example", "pybind11 example plugin");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user