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.
2 parents 02944a5 + 81b8e29 commit d1d941aCopy full SHA for d1d941a
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