mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: fix callback example import in fs docs
Signed-off-by: Rawal27 <obviouslykamal@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63912 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
44b4fe4246
commit
8933303568
1 file changed
+1
-1
+1
-1
@@ -8529,7 +8529,7 @@ rename('/tmp/hello', '/tmp/world', (err) => {
|
||||
```
|
||||
|
||||
```cjs
|
||||
const { rename, stat } = require('node:fs/promises');
|
||||
const { rename, stat } = require('node:fs');
|
||||
|
||||
rename('/tmp/hello', '/tmp/world', (err) => {
|
||||
if (err) throw err;
|
||||
|
||||
Reference in new issue
Block a user