fix typo
This commit is contained in:
parent
2994e9d7eb
commit
671ff331d3
1 changed files with 2 additions and 2 deletions
|
|
@ -96,13 +96,13 @@ impl Position {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the number of legal moves on the position.
|
/// Returns the list of legal moves.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn legal_moves<'l>(&'l self) -> Moves<'l> {
|
pub fn legal_moves<'l>(&'l self) -> Moves<'l> {
|
||||||
Moves::compute(self)
|
Moves::compute(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Counts the legal moves on the position.
|
/// Returns the number of legal moves.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn count_legal_moves(&self) -> usize {
|
pub fn count_legal_moves(&self) -> usize {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue