Skip to content

Commit 5741f22

Browse files
committed
Add missing semicolon in chapter 21
1 parent 47caf07 commit 5741f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

21_skillsharing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ If the data looks valid, the handler stores an object that represents the new ta
324324
To read the body from the request stream, we will use the `json` function from `"node:stream/consumers"`, which collects the data in the stream and then parses it as JSON. There are similar exports called `text` (to read the content as a string) and `buffer` (to read it as binary data) in this package. Since `json` is a very generic name, the import renames it to `readJSON` to avoid confusion.
325325

326326
```{includeCode: ">code/skillsharing/skillsharing_server.mjs"}
327-
import {json as readJSON} from "node:stream/consumers"
327+
import {json as readJSON} from "node:stream/consumers";
328328
329329
router.add("PUT", talkPath,
330330
async (server, title, request) => {

0 commit comments

Comments
 (0)