diff --git a/crates/border-wars/src/map/hex.rs b/crates/border-wars/src/map/hex.rs index b31f29c..7ffb02c 100644 --- a/crates/border-wars/src/map/hex.rs +++ b/crates/border-wars/src/map/hex.rs @@ -252,7 +252,7 @@ impl HexPosition { /// use bevy::math::Vec2; /// /// let position = HexPosition(1, 0); - /// assert_eq!(position.to_pixel_coordinates(), Vec2::new(3f32.sqrt(), 0.0)); + /// assert_eq!(position.to_pixel_coordinates(), (3f32.sqrt(), 0.0).into()); /// ``` pub fn to_pixel_coordinates(&self) -> Vec2 { Vec2::new(