Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmarsh committed Feb 26, 2024
1 parent 9fbc0fc commit ceeb472
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ where
mod example {
use super::*;

// Define an example struct implementing RectangularBoard
pub struct ExampleBoard {
pub data: [[char; 7]; 7],
}
Expand All @@ -58,7 +57,7 @@ mod example {
const NUM_DISPLAY_COLS: usize = 7;

fn display_char_at(&self, row: usize, col: usize) -> char {
self.data[row - 1][col - 1] // Adjusting for 1-based indexing
self.data[row][col]
}
}

Expand Down

0 comments on commit ceeb472

Please sign in to comment.