diff --git a/src/cast.rs b/src/cast.rs index f856761b..97b9846e 100644 --- a/src/cast.rs +++ b/src/cast.rs @@ -30,7 +30,7 @@ where /// Performs a dynamic cast (checked at runtime) of this value into the /// target type `T`. /// - /// This method will return `Err(self)` is `self.is_instance_of::()` + /// This method will return `Err(self)` if `self.is_instance_of::()` /// returns `false`, and otherwise it will return `Ok(T)` manufactured with /// an unchecked cast (verified correct via the `instanceof` operation). fn dyn_into(self) -> Result @@ -47,7 +47,7 @@ where /// Performs a dynamic cast (checked at runtime) of this value into the /// target type `T`. /// - /// This method will return `None` is `self.is_instance_of::()` + /// This method will return `None` if `self.is_instance_of::()` /// returns `false`, and otherwise it will return `Some(&T)` manufactured /// with an unchecked cast (verified correct via the `instanceof` operation). fn dyn_ref(&self) -> Option<&T>