From bf2d56e8acb0c0d83b7ab6ec0009e903530f8b9b Mon Sep 17 00:00:00 2001 From: Plamen Totev Date: Wed, 3 Sep 2025 19:07:22 +0300 Subject: [PATCH] Fix the first example in the first steps guide not compiling (#5823) The alias of the pybind11 namespace is missing --- docs/basics.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/basics.rst b/docs/basics.rst index 1e68869d4..074d98850 100644 --- a/docs/basics.rst +++ b/docs/basics.rst @@ -108,6 +108,8 @@ a file named :file:`example.cpp` with the following contents: #include + namespace py = pybind11; + int add(int i, int j) { return i + j; }