From dea701004e53f938d4e409427b70c4dc8c9dc64a 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 c277c7874f9f88..89a5a21ecc13fd 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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 ```