Commit 36738579 authored by David Nogueira's avatar David Nogueira Committed by Stefan Behnel

Fix error in example code in documentation.

parent 02d8bcc6
...@@ -81,8 +81,8 @@ and the implementation in the file called :file:`Rectangle.cpp`: ...@@ -81,8 +81,8 @@ and the implementation in the file called :file:`Rectangle.cpp`:
} }
void Rectangle::getSize(int *width, int *height) { void Rectangle::getSize(int *width, int *height) {
width = x1 - x0; (*width) = x1 - x0;
height = y1 - y0; (*height) = y1 - y0;
} }
void Rectangle::move(int dx, int dy) { void Rectangle::move(int dx, int dy) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment