diff options
author | Juan José Arboleda <soyjuanarbol@gmail.com> | 2021-10-11 22:29:30 +0300 |
---|---|---|
committer | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2021-10-23 01:44:59 +0300 |
commit | ced518c61a3c362f8870e78aa0a2a08a6ce007c2 (patch) | |
tree | eb6b55905f822969fa117e5281618714f7462d0c /doc/api/fs.md | |
parent | 816e92e6968fe6b48f16f12f53736ffa797682b1 (diff) |
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>
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r-- | doc/api/fs.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index d0c0635bead..fb4a625b863 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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 ``` |