We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0850339 commit 81b8e29Copy full SHA for 81b8e29
examples/fn/methods/methods.rs
@@ -41,7 +41,7 @@ impl Rectangle {
41
let Point { x: x1, y: y1 } = self.p1;
42
let Point { x: x2, y: y2 } = self.p2;
43
44
- 2.0 * (x1 - x2).abs() + 2.0 * (y1 - y2).abs()
+ 2.0 * ((x1 - x2).abs() + (y1 - y2).abs())
45
}
46
47
// This method requires the caller object to be mutable
0 commit comments