Skip to content

Commit

Permalink
Update 1835.md (#268)
Browse files Browse the repository at this point in the history
The code didn't compile. Returning now a Task<string> instead of a Task
  • Loading branch information
sonnemaf authored Mar 14, 2023
1 parent 589e426 commit 1780a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _rules/1835.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ severity: 1
---
Consider the following asynchronous method:

private async Task GetDataAsync()
private async Task<string> GetDataAsync()
{
var result = await MyWebService.GetDataAsync();
return result.ToString();
Expand Down

0 comments on commit 1780a9d

Please sign in to comment.