From 2c68bfe821d01f9b5f0eda4c95ed7769f780fabd Mon Sep 17 00:00:00 2001 From: Alexander Kernozhitsky Date: Mon, 15 Aug 2022 00:53:14 +0300 Subject: [PATCH] Minor fix --- chess/src/chain.rs | 2 +- chess/src/moves/make.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chess/src/chain.rs b/chess/src/chain.rs index 37b64f0..b51d791 100644 --- a/chess/src/chain.rs +++ b/chess/src/chain.rs @@ -15,7 +15,7 @@ //! ``` //! # use owlchess::{Board, MoveChain}; //! # use owlchess::moves::make; -//! +//! # //! // Create an empty chain from the empty position //! let mut chain = MoveChain::new_initial(); //! diff --git a/chess/src/moves/make.rs b/chess/src/moves/make.rs index 35fc750..3470e86 100644 --- a/chess/src/moves/make.rs +++ b/chess/src/moves/make.rs @@ -57,8 +57,8 @@ impl Unchecked { /// /// # Safety /// - /// You must guarantee that this move will be applied only to the position when this move is legal - /// or null, and null moves are allowed only if the king is not is check. Applying this move to other + /// You must guarantee that this move will be applied only to positions where it is legal or null, + /// and null moves are allowed only if the king is not is check. Applying this move to other /// positions is considered undefined behaviour. #[inline] pub unsafe fn new(mv: Move) -> Self { @@ -92,8 +92,8 @@ impl TryUnchecked { /// /// # Safety /// - /// You must guarantee that this move will be applied only to the position when this move is legal - /// or null, otherwise the behavior is undefined. + /// You must guarantee that this move will be applied only to positions where it is legal or null, + /// otherwise the behavior is undefined. #[inline] pub unsafe fn new(mv: Move) -> Self { Self(mv)