diff --git a/aspnetcore/blazor/call-web-api.md b/aspnetcore/blazor/call-web-api.md index 393eff72727a..28192804c1f0 100644 --- a/aspnetcore/blazor/call-web-api.md +++ b/aspnetcore/blazor/call-web-api.md @@ -520,7 +520,7 @@ If you're calling an external web API (not in the same URL space as the client a ```csharp builder.Services.AddHttpClient("WebAPI", client => - client.BaseAddress = new Uri(https://localhost:5001)); + client.BaseAddress = new Uri("https://localhost:5001")); ``` In the following component code: @@ -618,7 +618,7 @@ If you're calling an external web API (not in the same URL space as the client a ```csharp builder.Services.AddHttpClient(client => - client.BaseAddress = new Uri(https://localhost:5001)); + client.BaseAddress = new Uri("https://localhost:5001")); ``` Components inject the typed to call the web API.