Fix CMake example code in embedding docs
[skip ci]
diff --git a/docs/advanced/embedding.rst b/docs/advanced/embedding.rst
index 0aea28a..bba1e56 100644
--- a/docs/advanced/embedding.rst
+++ b/docs/advanced/embedding.rst
@@ -21,7 +21,7 @@
find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)`
- add_executable(example MODULE main.cpp)
+ add_executable(example main.cpp)
target_link_libraries(example PRIVATE pybind11::embed)
The essential structure of the ``main.cpp`` file looks like this:
@@ -45,7 +45,7 @@
Executing Python code
=====================
-There are few different ways to run Python code. One option is to use `eval`,
+There are a few different ways to run Python code. One option is to use `eval`,
`exec` or `eval_file`, as explained in :ref:`eval`. Here is a quick example in
the context of an executable with an embedded interpreter:
diff --git a/docs/compiling.rst b/docs/compiling.rst
index 9320fd2..91e65df 100644
--- a/docs/compiling.rst
+++ b/docs/compiling.rst
@@ -203,7 +203,7 @@
find_package(pybind11 REQUIRED) # or add_subdirectory(pybind11)
- add_executable(example MODULE main.cpp)
+ add_executable(example main.cpp)
target_link_libraries(example PRIVATE pybind11::embed)