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 BethGriggs committed Nov 24, 2021
1 parent 595117f commit dea7010
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/api/fs.md
Expand Up @@ -3695,15 +3695,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 dea7010

Please sign in to comment.