From d64d0bb25815862d0a418b12f1ee76ea8882b500 Mon Sep 17 00:00:00 2001 From: CoCoSol007 Date: Wed, 21 Feb 2024 17:45:08 +0100 Subject: [PATCH] update --- crates/border-wars/src/map/hex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/border-wars/src/map/hex.rs b/crates/border-wars/src/map/hex.rs index 11d2eca..b31f29c 100644 --- a/crates/border-wars/src/map/hex.rs +++ b/crates/border-wars/src/map/hex.rs @@ -249,9 +249,10 @@ impl HexPosition { /// /// ```no_run /// use border_wars::map::hex::HexPosition; + /// use bevy::math::Vec2; /// /// let position = HexPosition(1, 0); - /// assert_eq!(position.to_pixel_coordinates(), (3f32.sqrt(), 0.0)); + /// assert_eq!(position.to_pixel_coordinates(), Vec2::new(3f32.sqrt(), 0.0)); /// ``` pub fn to_pixel_coordinates(&self) -> Vec2 { Vec2::new(