From fd946215ccbf26e113911080a527cc900a0c45a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Mon, 11 Oct 2021 14:29:30 -0500 Subject: [PATCH] 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 --- doc/api/fs.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index d0c0635bead826..fb4a625b863240 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 ```