From 1ef602b23ca64486972b27c3b9342b7e48ce772d Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Thu, 31 May 2018 09:47:40 -0500 Subject: [PATCH] Update RunConsoleAsync example (#6737) --- aspnetcore/fundamentals/host/generic-host.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } } ```