Skip to content

Commit 1d20f95

Browse files
committed
fmt
1 parent 18a614c commit 1d20f95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/lessons/03_data_types/data_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl Hero {
3333
// The i-th field of a tuple or a tuple struct can be accessed through 'tuple.i'.
3434
// Do not abuse this syntax, though; it's often cleaner to perform
3535
// pattern matching to decompose the tuple.
36-
(pos.0 - self.position.0).unsigned_abs() + (pos.1 - self.position.1).unsigned_abs()
36+
(pos.0 - self.position.0).unsigned_abs() + (pos.1 - self.position.1).unsigned_abs()
3737
}
3838

3939
// Mutable borrow of self allows to change instance fields.

0 commit comments

Comments
 (0)