From 9a4fb1a5fd0f97945db1a845f65288c8d32cdc58 Mon Sep 17 00:00:00 2001 From: CoCoSol007 Date: Tue, 13 Feb 2024 20:45:57 +0100 Subject: [PATCH] update doc --- crates/border-wars/src/hex.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/border-wars/src/hex.rs b/crates/border-wars/src/hex.rs index ce313d3..81481f2 100644 --- a/crates/border-wars/src/hex.rs +++ b/crates/border-wars/src/hex.rs @@ -68,6 +68,8 @@ impl HexPosition { /// /// ## example /// ``` + /// use border_wars::hex::HexPosition; + /// /// let hex1 = HexPosition { q: 0, r: 0 }; /// let hex2 = HexPosition { q: 1, r: 1 }; /// let distance = hex1.distance_to(&hex2); @@ -84,6 +86,8 @@ impl HexPosition { /// /// ## example /// ``` + /// use border_wars::hex::HexPosition; + /// /// let hex = HexPosition { q: 0, r: 0 }; /// let positions = hex.range(1); /// assert_eq!(positions.len(), 6);