Fix 'ChessBoard::en_passant' documentation

This commit is contained in:
Bruno BELANYI 2024-04-06 11:22:13 +01:00
parent 5dce65c570
commit c412be501f

View file

@ -47,7 +47,7 @@ impl ChessBoard {
self.side self.side
} }
/// Return the [Square] currently occupied by a pawn that can be captured en-passant, or `None` /// Return the target [Square] that can be captured en-passant, or `None`
#[inline(always)] #[inline(always)]
pub fn en_passant(&self) -> Option<Square> { pub fn en_passant(&self) -> Option<Square> {
self.en_passant self.en_passant