Skip to content

Commit 23c6db5

Browse files
authored
doc: fix callback example import in fs docs
Signed-off-by: Rawal27 <obviouslykamal@gmail.com> PR-URL: #63912 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 43264c8 commit 23c6db5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8914,7 +8914,7 @@ rename('/tmp/hello', '/tmp/world', (err) => {
89148914
```
89158915
89168916
```cjs
8917-
const { rename, stat } = require('node:fs/promises');
8917+
const { rename, stat } = require('node:fs');
89188918

89198919
rename('/tmp/hello', '/tmp/world', (err) => {
89208920
if (err) throw err;

0 commit comments

Comments
 (0)