From b2faacc10da5aa76820ba49506995565d405f42b Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 26 Jan 2023 22:03:37 +0300 Subject: docs: remove code from docs to not fail doctest --- src/attacks.rs | 3 --- src/board/mod.rs | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/attacks.rs b/src/attacks.rs index 8217ce6..1074037 100644 --- a/src/attacks.rs +++ b/src/attacks.rs @@ -21,9 +21,6 @@ pub type Byte = u8; /// First index is *occupancy* of the first rank (all possible states) /// and the second index is the file of the piece on the first rank -/// ``` -/// rank_attacks = first_rank_attacks[occupancy][piece_file]; -/// ``` type FirstRankAttacks = [[Byte; 8]; 256]; #[allow(dead_code)] diff --git a/src/board/mod.rs b/src/board/mod.rs index a5803ac..06b61bb 100644 --- a/src/board/mod.rs +++ b/src/board/mod.rs @@ -21,9 +21,6 @@ pub struct Board { pub ep_target: Option, /// Castling rights indexed by Color and CastlingSide - /// ``` - /// let can_castle = castling_rights[Color::White as usize][CastlingSide::Queen as usize]; - /// ``` pub castling_rights: [[bool; 2]; 2], /// Zobrist hash of the current position -- cgit v1.2.3