Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alex65536 committed Aug 14, 2022
1 parent 8460952 commit 2c68bfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chess/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
//!
Expand Down
8 changes: 4 additions & 4 deletions chess/src/moves/make.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2c68bfe

Please sign in to comment.