diff options
author | David Nogueira <david.nogueira@priberam.com> | 2016-05-30 14:43:43 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-07-15 08:16:23 +0200 |
commit | 367385792aa801b59cec9ac38dc2ab74bfb63e4b (patch) | |
tree | 670a49370e0a21235153f5da7fe729918a6411b9 | |
parent | 02d8bcc63352ebfdefcf2125c946615489d6cfa4 (diff) | |
download | cython-367385792aa801b59cec9ac38dc2ab74bfb63e4b.tar.gz |
Fix error in example code in documentation.
-rw-r--r-- | docs/src/userguide/wrapping_CPlusPlus.rst | 4 |
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) { |