diff --git a/aspnetcore/fundamentals/host/generic-host.md b/aspnetcore/fundamentals/host/generic-host.md index 9830065711..0e6471d0b6 100644 --- a/aspnetcore/fundamentals/host/generic-host.md +++ b/aspnetcore/fundamentals/host/generic-host.md @@ -221,10 +221,9 @@ public class Program { public static async Task Main(string[] args) { - var host = new HostBuilder() - .Build(); + var hostBuilder = new HostBuilder(); - await host.RunConsoleAsync(); + await hostBuilder.RunConsoleAsync(); } } ```