Skip to content

Commit b79f2c1

Browse files
committed
doc: fix code example in fs.symlink method
Fixes: #40413
1 parent 40db88b commit b79f2c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/fs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3661,11 +3661,11 @@ Relative targets are relative to the link’s parent directory.
36613661
```mjs
36623662
import { symlink } from 'fs';
36633663
3664-
symlink('./mew', './example/mewtwo', callback);
3664+
symlink('./mew', './mewtwo', callback);
36653665
```
36663666

3667-
The above example creates a symbolic link `mewtwo` in the `example` which points
3668-
to `mew` in the same directory:
3667+
The above example creates a symbolic link `mewtwo` which points to `mew` in the
3668+
same directory:
36693669

36703670
```bash
36713671
$ tree example/

0 commit comments

Comments
 (0)