From 59fabdcc08491c2e117d36d54b481f3dbc21f7ca Mon Sep 17 00:00:00 2001 From: Mroik Date: Thu, 30 Jan 2025 17:56:10 +0100 Subject: Fix error text --- src/app.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/app.rs') diff --git a/src/app.rs b/src/app.rs index ea7cf05..02d18c6 100644 --- a/src/app.rs +++ b/src/app.rs @@ -27,8 +27,8 @@ use crate::{ }; pub const TICK_RATE: u64 = 1000 / 20; -const MIN_TERM_COL: u16 = 40; -const MIN_TERM_ROW: u16 = 10; +pub const MIN_TERM_COL: u16 = 40; +pub const MIN_TERM_ROW: u16 = 10; const MAX_QUOTE_LINE: u16 = 80; const MIN_MARGIN: u16 = 4; @@ -80,7 +80,7 @@ impl App<'_> { for w in quote.split_whitespace().filter(|s| !s.is_empty()) { let w_len = w.chars().count(); if w_len > max as usize { - return Err(WordTooLongError::new(w)); + return Err(WordTooLongError::new(w, max)); } if w_len + counter > max as usize { -- cgit v1.3