diff --git a/doc/v2/exec.html b/doc/v2/exec.html index eb843e49..83d2c9b8 100644 --- a/doc/v2/exec.html +++ b/doc/v2/exec.html @@ -127,7 +127,7 @@ void greet() // Define greet function in Python. object result = exec( - "def greet(self): \n" + "def greet(): \n" " return 'Hello from Python!' \n", global, global); @@ -144,7 +144,7 @@ void greet() we could also store it in an a file...
-def greet(self):
+def greet():
return 'Hello from Python!'