Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Promise-based operations return a `Promise` that is resolved when the
asynchronous operation is complete.

```js
const fs = require('fs/promises');
const fs = require('fs').promises;

(async function(path) {
try {
Expand Down Expand Up @@ -106,7 +106,7 @@ fs.rename('/tmp/hello', '/tmp/world', (err) => {
Or, use the promise-based API:

```js
const fs = require('fs/promises');
const fs = require('fs').promises;

(async function(from, to) {
try {
Expand Down