Skip to content

Commit

Permalink
doc: fix fs.symlink code example
Browse files Browse the repository at this point in the history
Fixes: #40413

PR-URL: #40414
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
juanarbol authored and aduh95 committed Oct 22, 2021
1 parent 816e92e commit ced518c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3756,15 +3756,15 @@ Relative targets are relative to the link’s parent directory.
```mjs
import { symlink } from 'fs';
symlink('./mew', './example/mewtwo', callback);
symlink('./mew', './mewtwo', callback);
```

The above example creates a symbolic link `mewtwo` in the `example` which points
to `mew` in the same directory:
The above example creates a symbolic link `mewtwo` which points to `mew` in the
same directory:

```bash
$ tree example/
example/
$ tree .
.
├── mew
└── mewtwo -> ./mew
```
Expand Down

0 comments on commit ced518c

Please sign in to comment.