diff --git a/docs/src/userguide/wrapping_CPlusPlus.rst b/docs/src/userguide/wrapping_CPlusPlus.rst index 857bb014825825aeebe0fd154b3fef73f7a1639f..192b007d9ec925564a78116d1ad6d1a1d6d1d729 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) {