From bb4dd8289b351fae6b55e303f189127a394a1edd Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 26 Aug 2013 08:15:55 -0400 Subject: Imported Upstream version 1.51.0 --- .../doc/tutorial/doc/html/python/functions.html | 4 +- libs/python/doc/tutorial/doc/tutorial.qbk | 4 +- libs/python/doc/v2/make_function.html | 51 ++++++++++------------ 3 files changed, 28 insertions(+), 31 deletions(-) (limited to 'libs/python/doc') diff --git a/libs/python/doc/tutorial/doc/html/python/functions.html b/libs/python/doc/tutorial/doc/html/python/functions.html index ca869d1837..ddd5bc7b70 100644 --- a/libs/python/doc/tutorial/doc/html/python/functions.html +++ b/libs/python/doc/tutorial/doc/html/python/functions.html @@ -372,8 +372,8 @@ Namespaces are one honking great idea -- let's do more of those! or writing thin wrappers:

// write "thin wrappers"
-int f1(int x) { f(x); }
-int f2(int x, double y) { f(x,y); }
+int f1(int x) { return f(x); }
+int f2(int x, double y) { return f(x,y); }
 
 /*...*/
 
diff --git a/libs/python/doc/tutorial/doc/tutorial.qbk b/libs/python/doc/tutorial/doc/tutorial.qbk
index 204c500449..10a452200c 100644
--- a/libs/python/doc/tutorial/doc/tutorial.qbk
+++ b/libs/python/doc/tutorial/doc/tutorial.qbk
@@ -901,8 +901,8 @@ wrapping as outlined in the [link python.overloading previous section], or
 writing thin wrappers:
 
     // write "thin wrappers"
-    int f1(int x) { f(x); }
-    int f2(int x, double y) { f(x,y); }
+    int f1(int x) { return f(x); }
+    int f2(int x, double y) { return f(x,y); }
 
     /*...*/
 
diff --git a/libs/python/doc/v2/make_function.html b/libs/python/doc/v2/make_function.html
index 3913672195..d5a6cdb06e 100644
--- a/libs/python/doc/v2/make_function.html
+++ b/libs/python/doc/v2/make_function.html
@@ -96,10 +96,10 @@ template <class F, class Policies, class Keywords, class Signature>
       to f. 
- It can be used this way in Python: + It can be used this way in Python:
 >>> from make_function_test import *
 >>> f = choose_function(1)
-- 
cgit v1.2.3