diff --git a/docs/guide/http/endpoints.md b/docs/guide/http/endpoints.md index 960ddb5f..896d003b 100644 --- a/docs/guide/http/endpoints.md +++ b/docs/guide/http/endpoints.md @@ -18,7 +18,7 @@ public static ArithmeticResults PostJson(Question question) snippet source | anchor -In the method signature above, `Question` is the "request" type (the payload sent from the client to the server) and `Answer` is the "resource" type (what is being returned to the client). +In the method signature above, `Question` is the "request" type (the payload sent from the client to the server) and `ArithmeticResults` is the "resource" type (what is being returned to the client). If instead that method were asynchronous like this: @@ -39,8 +39,8 @@ public static Task PostJsonAsync(Question question) snippet source | anchor -The resource type is still `Answer`. Likewise, if an endpoint returns `ValueTask`, the resource type -is also `Answer`, and Wolverine will worry about the asynchronous (or `return Task.CompletedTask;`) mechanisms +The resource type is still `ArithmeticResults`. Likewise, if an endpoint returns `ValueTask`, the resource type +is also `ArithmeticResults`, and Wolverine will worry about the asynchronous (or `return Task.CompletedTask;`) mechanisms for you in the generated code. ## Legal Endpoint Signatures