Skip to content

Commit acab42d

Browse files
mikkelbuRon Petrusha
authored andcommitted
Correct typo in async.md (#5467)
Fixes #5446
1 parent a8b5688 commit acab42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public async Task<int> GetDotNetCountAsync()
127127
{
128128
// Suspends GetDotNetCountAsync() to allow the caller (the web server)
129129
// to accept another request, rather than blocking on this one.
130-
var html = await _httpClient.DownloadStringAsync("http://dotnetfoundation.org");
130+
var html = await _httpClient.GetStringAsync("http://dotnetfoundation.org");
131131

132132
return Regex.Matches(html, @"\.NET").Count;
133133
}

0 commit comments

Comments
 (0)