chore: Fix typos across the codebase

This commit is contained in:
Jade Ellis 2025-05-06 20:51:12 +01:00
parent d78fc53577
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

@ -36,7 +36,7 @@ const MAIN_MANIFEST: &'static str = ();
/// For *enabled* features see the info::rustc module instead.
static FEATURES: OnceLock<Vec<String>> = OnceLock::new();
/// Processed list of dependencies. This is generated from the datas captured in
/// Processed list of dependencies. This is generated from the data captured in
/// the MANIFEST.
static DEPENDENCIES: OnceLock<DepsSet> = OnceLock::new();

View file

@ -16,9 +16,9 @@ use crate::{Result, error};
/// pulling in a version of tracing that's incompatible with the rest of our
/// deps.
///
/// To work around this, we define an trait without the S paramter that forwards
/// to the reload::Handle::reload method, and then store the handle as a trait
/// object.
/// To work around this, we define an trait without the S parameter that
/// forwards to the reload::Handle::reload method, and then store the handle as
/// a trait object.
///
/// [1]: <https://github.com/tokio-rs/tracing/pull/1035/commits/8a87ea52425098d3ef8f56d92358c2f6c144a28f>
pub trait ReloadHandle<L> {

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.