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 {