fix stock getting reversed

This commit is contained in:
2026-05-15 14:16:42 -07:00
parent 6d414bd02f
commit 88f35b9462
+1 -1
View File
@@ -163,7 +163,7 @@ impl<const CAP: usize> Pile<CAP> {
}
pub fn flip_it_and_reverse_it(&mut self) {
self.swap_up_down();
self.face_up.reverse();
self.face_down.reverse();
}
pub fn swap_up_down(&mut self) {
core::mem::swap(&mut self.face_up, &mut self.face_down);