From b68dd132e8ca7a91b92ae21e681c2b2d1d57433f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 20 Jul 2022 19:07:37 +0200 Subject: [PATCH] Fix typo in 'board::Color' documentation --- src/board/color.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/board/color.rs b/src/board/color.rs index 92fb4b5..d5c66d3 100644 --- a/src/board/color.rs +++ b/src/board/color.rs @@ -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 ///