Fix typo in 'board::Color' documentation
This commit is contained in:
parent
2c1142324c
commit
b68dd132e8
|
@ -8,7 +8,7 @@ pub enum Color {
|
|||
}
|
||||
|
||||
impl Color {
|
||||
/// Convert from a file index into a [Color] type.
|
||||
/// Convert from a color index into a [Color] type.
|
||||
#[inline(always)]
|
||||
pub fn from_index(index: usize) -> Self {
|
||||
assert!(index < 2);
|
||||
|
@ -16,7 +16,7 @@ impl Color {
|
|||
unsafe { Self::from_index_unchecked(index) }
|
||||
}
|
||||
|
||||
/// Convert from a file index into a [Color] type, no bounds checking.
|
||||
/// Convert from a color index into a [Color] type, no bounds checking.
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue