Commit 3f861413 authored by David Nogueira's avatar David Nogueira

Fix error in example code in documentation.

parent 1c564021
......@@ -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) {
......
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