1 2 3 4 5 6 7 8 9
pub mod classify; pub mod client; pub mod parse; pub mod prompt; /// Shorten text for an error message without splitting a UTF-8 character. pub(crate) fn truncate(s: &str, max: usize) -> &str { &s[..s.floor_char_boundary(max)] }