diff --git a/docs/core/extensions/service-discovery.md b/docs/core/extensions/service-discovery.md index 9660e735a1893..fa1dbb4ead697 100644 --- a/docs/core/extensions/service-discovery.md +++ b/docs/core/extensions/service-discovery.md @@ -116,12 +116,12 @@ The configuration resolver is configured using the extension method on the `IServiceCollection` within your application's `Startup` class or `Program` file: ```csharp var builder = WebApplication.CreateBuilder(args); -builder.Services.Configure( +builder.Services.Configure( static options => { options.SectionName = "MyServiceEndpoints";