Skip to content
Snippets Groups Projects
Commit 05a375c0 authored by Oliver Sander's avatar Oliver Sander
Browse files

Fix spelling in comments

parent 2c0fd3c7
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,7 @@ int main(int argc, char** argv) try ...@@ -151,7 +151,7 @@ int main(int argc, char** argv) try
std::cout << "Example 5: Types derived from Reference ***************************************" << std::endl; std::cout << "Example 5: Types derived from Reference ***************************************" << std::endl;
{ {
// There are various classes derived from Reference, e.g., for // There are various classes derived from Reference, e.g., for
// modules, callables, ... providig corresponding special methods. // modules, callables, ... providing corresponding special methods.
// Depending on the a-priori knowledge methods will either // Depending on the a-priori knowledge methods will either
// return a Reference (e.g. get()) or a derived type (e.g. import()). // return a Reference (e.g. get()) or a derived type (e.g. import()).
// However you can always try to convert a Reference // However you can always try to convert a Reference
...@@ -169,7 +169,7 @@ int main(int argc, char** argv) try ...@@ -169,7 +169,7 @@ int main(int argc, char** argv) try
// You can obtain a Module by converting a Reference // You can obtain a Module by converting a Reference
auto module3 = Python::Module(pyMain.get("dunepythontest")); auto module3 = Python::Module(pyMain.get("dunepythontest"));
// Converting a nonmathching object will fail. // Converting a nonmatching object will fail.
pyMain.run("someInt = 3"); pyMain.run("someInt = 3");
auto someInt = pyMain.get("someInt"); auto someInt = pyMain.get("someInt");
std::cout << someInt << std::endl; std::cout << someInt << std::endl;
...@@ -289,10 +289,10 @@ int main(int argc, char** argv) try ...@@ -289,10 +289,10 @@ int main(int argc, char** argv) try
// //
// All of these can be accessed using the operator () on a // All of these can be accessed using the operator () on a
// Python::Callable which refers to a callable python object. // Python::Callable which refers to a callable python object.
// To obtain a Callable convert an apropriate object. // To obtain a Callable convert an appropriate object.
// //
// You can pass to Callable objects and C++ objects // You can pass to Callable objects and C++ objects
// as arguments. In the later case they will be converted // as arguments. In the latter case they will be converted
// to python objects before the actual python call is // to python objects before the actual python call is
// executed automatically (see below). // executed automatically (see below).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment