Changed reason to description

This commit is contained in:
benjamyn committed 2024-11-29 18:11:14 +11:00
1 parent 2e1231e9d9
commit 4aaa6601c2
2 files changed
+8 -7

No files matched your search

+4 -3
View File
@@ -17,12 +17,12 @@ impl BingoSquare {
#[derive(Deserialize)]
pub struct Meta {
name: String,
reason: String,
description: String,
}
impl Meta {
pub fn new(name: String, reason: String) -> Meta {
Meta { name, reason }
pub fn new(name: String, description: String) -> Meta {
Meta { name, description }
}
}
@@ -35,6 +35,7 @@ pub struct BingoPool {
impl fmt::Display for BingoPool {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Name: {}\n", self.meta.name).unwrap();
write!(f, "Description: {}\n\n", self.meta.description).unwrap();
for square in &self.squares {
write!(f, "Square: {}\n", square.option).unwrap();
}