From eb16cda31f5a9c65d33674c40b2311e573c7d8e8 Mon Sep 17 00:00:00 2001 From: RyanZim Date: Fri, 14 Jul 2017 13:25:47 -0400 Subject: [PATCH] Fix docs lint error --- docs/fs-read-write.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/fs-read-write.md b/docs/fs-read-write.md index ea9cf170..5e5f4207 100644 --- a/docs/fs-read-write.md +++ b/docs/fs-read-write.md @@ -18,7 +18,7 @@ fs.read(fd, buffer, offset, length, position) // Async/await usage: async function example () { - const { bytesRead, buffer } = await fs.read(fd, buffer, offset, length, position) + const { bytesRead, buffer } = await fs.read(fd, Buffer.alloc(length), offset, length, position) } ``` @@ -34,6 +34,6 @@ fs.write(fd, buffer, offset, length, position) // Async/await usage: async function example () { - const { bytesWritten, buffer } = await fs.write(fd, buffer, offset, length, position) + const { bytesWritten, buffer } = await fs.write(fd, Buffer.alloc(length), offset, length, position) } ```