api-macros: Fix a typo

This commit is contained in:
Jonas Platte 2021-04-11 14:28:16 +02:00
parent e7a31f1fd1
commit 15433a9751
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -29,8 +29,8 @@ impl Response {
if #bytes::Buf::has_remaining(&body) { if #bytes::Buf::has_remaining(&body) {
#serde_json::from_reader(#bytes::Buf::reader(body))? #serde_json::from_reader(#bytes::Buf::reader(body))?
} else { } else {
// If the reponse body is completely empty, pretend it is an empty JSON // If the response body is completely empty, pretend it is an empty
// object instead. This allows responses with only optional body // JSON object instead. This allows responses with only optional body
// parameters to be deserialized in that case. // parameters to be deserialized in that case.
#serde_json::from_str("{}")? #serde_json::from_str("{}")?
} }