Skip to content

Commit bf2d56e

Browse files
authored
Fix the first example in the first steps guide not compiling (#5823)
The alias of the pybind11 namespace is missing
1 parent cd56888 commit bf2d56e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/basics.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ a file named :file:`example.cpp` with the following contents:
108108
109109
#include <pybind11/pybind11.h>
110110
111+
namespace py = pybind11;
112+
111113
int add(int i, int j) {
112114
return i + j;
113115
}

0 commit comments

Comments
 (0)