summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Nogueira <david.nogueira@priberam.com>2016-05-30 14:43:43 +0100
committerStefan Behnel <stefan_ml@behnel.de>2016-07-15 08:16:23 +0200
commit367385792aa801b59cec9ac38dc2ab74bfb63e4b (patch)
tree670a49370e0a21235153f5da7fe729918a6411b9
parent02d8bcc63352ebfdefcf2125c946615489d6cfa4 (diff)
downloadcython-367385792aa801b59cec9ac38dc2ab74bfb63e4b.tar.gz
Fix error in example code in documentation.
-rw-r--r--docs/src/userguide/wrapping_CPlusPlus.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/userguide/wrapping_CPlusPlus.rst b/docs/src/userguide/wrapping_CPlusPlus.rst
index 857bb0148..192b007d9 100644
--- a/docs/src/userguide/wrapping_CPlusPlus.rst
+++ b/docs/src/userguide/wrapping_CPlusPlus.rst
@@ -81,8 +81,8 @@ and the implementation in the file called :file:`Rectangle.cpp`:
}
void Rectangle::getSize(int *width, int *height) {
- width = x1 - x0;
- height = y1 - y0;
+ (*width) = x1 - x0;
+ (*height) = y1 - y0;
}
void Rectangle::move(int dx, int dy) {