Skip to content

Commit fd94621

Browse files
juanarboltargos
authored andcommitted
doc: fix fs.symlink code example
Fixes: #40413 PR-URL: #40414 Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 404730a commit fd94621

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/fs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3756,15 +3756,15 @@ Relative targets are relative to the link’s parent directory.
37563756
```mjs
37573757
import { symlink } from 'fs';
37583758
3759-
symlink('./mew', './example/mewtwo', callback);
3759+
symlink('./mew', './mewtwo', callback);
37603760
```
37613761

3762-
The above example creates a symbolic link `mewtwo` in the `example` which points
3763-
to `mew` in the same directory:
3762+
The above example creates a symbolic link `mewtwo` which points to `mew` in the
3763+
same directory:
37643764

37653765
```bash
3766-
$ tree example/
3767-
example/
3766+
$ tree .
3767+
.
37683768
├── mew
37693769
└── mewtwo -> ./mew
37703770
```

0 commit comments

Comments
 (0)