From 671ff331d3ddb4a5efdf44dc32136c6a07e55cd4 Mon Sep 17 00:00:00 2001 From: Paul-Nicolas Madelaine Date: Mon, 17 Nov 2025 22:07:05 +0100 Subject: [PATCH] fix typo --- src/position.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/position.rs b/src/position.rs index adce0b9..874fbcb 100644 --- a/src/position.rs +++ b/src/position.rs @@ -96,13 +96,13 @@ impl Position { }) } - /// Returns the number of legal moves on the position. + /// Returns the list of legal moves. #[inline] pub fn legal_moves<'l>(&'l self) -> Moves<'l> { Moves::compute(self) } - /// Counts the legal moves on the position. + /// Returns the number of legal moves. #[must_use] #[inline] pub fn count_legal_moves(&self) -> usize {