Skip to content

Commit dea7010

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

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
@@ -3695,15 +3695,15 @@ Relative targets are relative to the link’s parent directory.
36953695
```mjs
36963696
import { symlink } from 'fs';
36973697
3698-
symlink('./mew', './example/mewtwo', callback);
3698+
symlink('./mew', './mewtwo', callback);
36993699
```
37003700

3701-
The above example creates a symbolic link `mewtwo` in the `example` which points
3702-
to `mew` in the same directory:
3701+
The above example creates a symbolic link `mewtwo` which points to `mew` in the
3702+
same directory:
37033703

37043704
```bash
3705-
$ tree example/
3706-
example/
3705+
$ tree .
3706+
.
37073707
├── mew
37083708
└── mewtwo -> ./mew
37093709
```

0 commit comments

Comments
 (0)