From 6dc7ed9c0c5de55621fb5625cdf08d93d1ca0f51 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 2 Oct 2022 19:48:24 +0200 Subject: docs: fix spelling mistakes in blocking & async DI containers --- src/async_di_container.rs | 8 ++++---- src/di_container.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/async_di_container.rs b/src/async_di_container.rs index 881f64c..ab74b4c 100644 --- a/src/async_di_container.rs +++ b/src/async_di_container.rs @@ -656,8 +656,8 @@ impl AsyncDIContainer /// # Errors /// Will return `Err` if: /// - No binding for `Interface` exists - /// - Resolving the binding for fails - /// - Casting the binding for fails + /// - Resolving the binding for `Interface` fails + /// - Casting the binding for `Interface` fails pub async fn get( self: &Arc, ) -> Result, AsyncDIContainerError> @@ -672,8 +672,8 @@ impl AsyncDIContainer /// # Errors /// Will return `Err` if: /// - No binding for `Interface` with name `name` exists - /// - Resolving the binding fails - /// - Casting the binding for fails + /// - Resolving the binding for `Interface` fails + /// - Casting the binding for `Interface` fails pub async fn get_named( self: &Arc, name: &'static str, diff --git a/src/di_container.rs b/src/di_container.rs index 7743be8..4d43e8a 100644 --- a/src/di_container.rs +++ b/src/di_container.rs @@ -494,8 +494,8 @@ impl DIContainer /// # Errors /// Will return `Err` if: /// - No binding for `Interface` exists - /// - Resolving the binding for fails - /// - Casting the binding for fails + /// - Resolving the binding for `Interface` fails + /// - Casting the binding for `Interface` fails pub fn get(self: &Rc) -> Result, DIContainerError> where Interface: 'static + ?Sized, @@ -508,8 +508,8 @@ impl DIContainer /// # Errors /// Will return `Err` if: /// - No binding for `Interface` with name `name` exists - /// - Resolving the binding fails - /// - Casting the binding for fails + /// - Resolving the binding for `Interface` fails + /// - Casting the binding for `Interface` fails pub fn get_named( self: &Rc, name: &'static str, -- cgit v1.2.3-18-g5258