From d44db4fa3e466e38c123f2d528b58faac171d18e Mon Sep 17 00:00:00 2001 From: CoCoSol007 Date: Wed, 14 Feb 2024 10:53:26 +0100 Subject: [PATCH] fix fmt --- crates/border-wars/src/hex.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/border-wars/src/hex.rs b/crates/border-wars/src/hex.rs index 8026dc1..744329c 100644 --- a/crates/border-wars/src/hex.rs +++ b/crates/border-wars/src/hex.rs @@ -4,7 +4,8 @@ use std::collections::HashSet; use std::ops; /// Hexagonal position (in a hexagonal grid). -/// We are using the axial coordinate system explained in this [documentation](https://www.redblobgames.com/grids/hexagons/#coordinates). +/// We are using the axial coordinate system explained in this +/// [documentation](https://www.redblobgames.com/grids/hexagons/#coordinates). #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub struct HexPosition { /// Q coordinate @@ -19,7 +20,8 @@ impl HexPosition { /// /// # How does it work ? /// - /// Hexagonal grid using the [cube](https://www.redblobgames.com/grids/hexagons/#coordinates) coordinate system, + /// Hexagonal grid using the + /// [cube coordinate system](https://www.redblobgames.com/grids/hexagons/#coordinates), /// is like a cube in 2D space. /// The Manhattan distance between two positions is equal to: the half of /// the sum of abs(dx) + abs(dy) + abs(dz)