[moves] Lowercase expect() error message
Rust convention is short lowercase strings for these kinds of messages.
This commit is contained in:
parent
3bdeea00e5
commit
93c17a2740
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ impl std::iter::Iterator for PawnMoveGenerator {
|
|||
if let Some(target) = self.target_iterator.next() {
|
||||
let origin = self
|
||||
.calculate_origin_square(target)
|
||||
.expect("Bogus origin square");
|
||||
.expect("bogus origin square");
|
||||
|
||||
if target.rank().is_promotable_rank() {
|
||||
self.promotion_iterator = Some(PromotionIterator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue