Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dea7010

Browse filesBrowse files
juanarbolBethGriggs
authored andcommitted
doc: fix fs.symlink code example
Fixes: #40413 PR-URL: #40414 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 595117f commit dea7010
Copy full SHA for dea7010

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+5-5Lines changed: 5 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3695,15 +3695,15 @@ Relative targets are relative to the link’s parent directory.
36953695
```mjs
36963696
import { symlink } from 'fs';
36973697
3698-
symlink('./mew', './example/mewtwo', callback);
3698+
symlink('./mew', './mewtwo', callback);
36993699
```
37003700

3701-
The above example creates a symbolic link `mewtwo` in the `example` which points
3702-
to `mew` in the same directory:
3701+
The above example creates a symbolic link `mewtwo` which points to `mew` in the
3702+
same directory:
37033703

37043704
```bash
3705-
$ tree example/
3706-
example/
3705+
$ tree .
3706+
.
37073707
├── mew
37083708
└── mewtwo -> ./mew
37093709
```

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.