chore: Fix typos across the codebase

This commit is contained in:
Jade Ellis 2025-05-06 20:51:12 +01:00
commit 01594a6243
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
21 changed files with 55 additions and 43 deletions

View file

@ -1,12 +1,12 @@
type Delim<'a> = (&'a str, &'a str);
/// Slice a string between a pair of delimeters.
/// Slice a string between a pair of delimiters.
pub trait Between<'a> {
/// Extract a string between the delimeters. If the delimeters were not
/// Extract a string between the delimiters. If the delimiters were not
/// found None is returned, otherwise the first extraction is returned.
fn between(&self, delim: Delim<'_>) -> Option<&'a str>;
/// Extract a string between the delimeters. If the delimeters were not
/// Extract a string between the delimiters. If the delimiters were not
/// found the original string is returned; take note of this behavior,
/// if an empty slice is desired for this case use the fallible version and
/// unwrap to EMPTY.