doc: fix fs.symlink code example

Fixes: https://github.com/nodejs/node/issues/40413

PR-URL: https://github.com/nodejs/node/pull/40414
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Juan José Arboleda 2021-10-11 14:29:30 -05:00 committed by Antoine du Hamel
parent 816e92e696
commit ced518c61a

View File

@ -3756,15 +3756,15 @@ Relative targets are relative to the links 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
```