Skip to content

Commit cdb75ad

Browse files
authored
Update part6c.md
"so the await keyword." doesn't really make sense here, so I added "is required" at the end.
1 parent 3d54771 commit cdb75ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/6/en/part6c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ If the request is successful, the data contained in the response is converted to
113113
const data = await response.json()
114114
```
115115

116-
_fetch_ does not automatically convert any data included in the response to JSON format; the conversion must be done manually. It is also important to note that _response.json()_ is an asynchronous method, so the <i>await</i> keyword.
116+
_fetch_ does not automatically convert any data included in the response to JSON format; the conversion must be done manually. It is also important to note that _response.json()_ is an asynchronous method, so the <i>await</i> keyword is required.
117117

118118
Let's further simplify the code by directly returning the data returned by the _response.json()_ method:
119119

0 commit comments

Comments
 (0)