From 7fdcf2d1ed2478c1e37fc65f798e71cadfad5c6b Mon Sep 17 00:00:00 2001 From: drawdrop Date: Mon, 12 Aug 2024 23:02:39 +0800 Subject: [PATCH] Fix various docstring typos. * unqiue -> unique * overriden -> overridden * sentinal -> sentinel --- core/codegen/src/syn_ext.rs | 2 +- core/lib/src/rocket.rs | 2 +- core/lib/src/sentinel.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/codegen/src/syn_ext.rs b/core/codegen/src/syn_ext.rs index f1105e175a..1998fb7390 100644 --- a/core/codegen/src/syn_ext.rs +++ b/core/codegen/src/syn_ext.rs @@ -80,7 +80,7 @@ impl IdentExt for syn::Ident { self.prepend(crate::ROCKET_IDENT_PREFIX) } - /// Create a unqiue version of the ident `self` based on the hash of `self`, + /// Create a unique version of the ident `self` based on the hash of `self`, /// its span, the current call site, and any additional information provided /// by the closure `f`. /// diff --git a/core/lib/src/rocket.rs b/core/lib/src/rocket.rs index 0a9dd07afc..2838984574 100644 --- a/core/lib/src/rocket.rs +++ b/core/lib/src/rocket.rs @@ -193,7 +193,7 @@ impl Rocket { /// Overrides the current configuration provider with `provider`. /// /// The default provider, or a provider previously set with - /// [`Rocket::custom()`] or [`Rocket::reconfigure()`], is overriden by + /// [`Rocket::custom()`] or [`Rocket::reconfigure()`], is overridden by /// `provider`. /// /// # Example diff --git a/core/lib/src/sentinel.rs b/core/lib/src/sentinel.rs index c45517b0da..2ac1ec9af3 100644 --- a/core/lib/src/sentinel.rs +++ b/core/lib/src/sentinel.rs @@ -353,7 +353,7 @@ pub struct Sentry { } impl Sentry { - /// Returns the type ID of the resolved sentinal type. + /// Returns the type ID of the resolved sentinel type. /// /// # Example /// @@ -368,7 +368,7 @@ impl Sentry { self.type_id } - /// Returns the type name of the resolved sentinal type. + /// Returns the type name of the resolved sentinel type. /// /// # Example ///