From 4fb22e5ad32dddf2c6e77e1d944ab706c79e86a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=B5=20=CE=9D=CE=B9=CE=93=CE=9E=CE=97=CE=9B=CF=88=CE=9A?= Date: Mon, 31 Oct 2022 11:47:01 +0530 Subject: [PATCH] fix typo --- src/routes/docs/[...5]dependency-injection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/[...5]dependency-injection.md b/src/routes/docs/[...5]dependency-injection.md index a00a5d49..09abd093 100644 --- a/src/routes/docs/[...5]dependency-injection.md +++ b/src/routes/docs/[...5]dependency-injection.md @@ -130,7 +130,7 @@ public override async Task HandleAsync(CancellationToken ct) Validators are singletons for [performance reasons](/benchmarks). Constructor injection as well as the above-mentioned **\*Resolve()** methods are available for validators to get access to the dependencies. Take care not to maintain state in the validator unless that data is also singleton/static. -Tring to resolve a scoped dependency in the constructor will cause an error to be thrown. Scoped dependencies can be resolved in the constructor by creating a new scope and disposing it as shown below: +Trying to resolve a scoped dependency in the constructor will cause an error to be thrown. Scoped dependencies can be resolved in the constructor by creating a new scope and disposing it as shown below: ```cs title=MyValidator.cs public class MyValidator : Validator