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:
Kamal Rawal authored and Antoine du Hamel committed 2026-07-30 13:51:42 +02:00
1 parent 44b4fe4246
commit 8933303568
1 file changed
+1 -1
+1 -1
View File
@@ -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;