Skip to content

Commit

Permalink
Fix docs lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Jul 14, 2017
1 parent bd0a200 commit eb16cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/fs-read-write.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
```

Expand All @@ -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)
}
```

0 comments on commit eb16cda

Please sign in to comment.