From 4633db96092d5f191a044ee89f2947256ab06f8d Mon Sep 17 00:00:00 2001 From: CoCoSol007 Date: Wed, 21 Feb 2024 17:48:00 +0100 Subject: [PATCH] update --- crates/border-wars/src/map/hex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(