diff --git a/crates/bevy_math/src/primitives/dim2.rs b/crates/bevy_math/src/primitives/dim2.rs index 6f66c056b0149..b7f738b2f23d1 100644 --- a/crates/bevy_math/src/primitives/dim2.rs +++ b/crates/bevy_math/src/primitives/dim2.rs @@ -206,7 +206,7 @@ impl Triangle2d { /// Reverse the [`WindingOrder`] of the triangle /// by swapping the second and third vertices pub fn reverse(&mut self) { - self.vertices.swap(1, 2) + self.vertices.swap(1, 2); } }