From c61f589b7da9ac77f610f07e147da42d8de74a49 Mon Sep 17 00:00:00 2001 From: David Pine Date: Wed, 9 Oct 2024 13:22:10 -0500 Subject: [PATCH] Fix typo in dependency-injection-basics.md Fixes #42888 --- docs/core/extensions/dependency-injection-basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/extensions/dependency-injection-basics.md b/docs/core/extensions/dependency-injection-basics.md index 71b1ed4655d3d..57dccafa9b8e4 100644 --- a/docs/core/extensions/dependency-injection-basics.md +++ b/docs/core/extensions/dependency-injection-basics.md @@ -118,7 +118,7 @@ The most commonly used APIs for adding services to the `ServiceCollection` are l - `AddTransient` - `AddScoped` -These methods are convenience methods that create a instance and add it to the `ServiceCollection`. The `ServiceDescriptor` is a simple class that describes a service with its service type, implementation type, and lifetime. It can also desribe implementation factories and instances. +These methods are convenience methods that create a instance and add it to the `ServiceCollection`. The `ServiceDescriptor` is a simple class that describes a service with its service type, implementation type, and lifetime. It can also describe implementation factories and instances. For each of the services that you registered in the `ServiceCollection`, you could instead call the `Add` method with a `ServiceDescriptor` instance directly. Consider the following examples: