Skip to content

Commit 5843ae8

Browse files
committed
Revert "doc: clarify fs.symlink and fs.symlinkSync parameters"
The offending doc change clarified nothing, but put the arguments to fs.symlink() and fs.symlinkSync() in the wrong order. This reverts commit 8146f2e. BUG: nodejs/node-v0.x-archive#8920 PR: nodejs/node-v0.x-archive#8936
1 parent 668bde8 commit 5843ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/fs.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ the completion callback.
208208

209209
Synchronous link(2).
210210

211-
## fs.symlink(srcpath, dstpath[, type], callback)
211+
## fs.symlink(destination, path[, type], callback)
212212

213213
Asynchronous symlink(2). No arguments other than a possible exception are given
214214
to the completion callback.
@@ -217,7 +217,7 @@ is `'file'`) and is only available on Windows (ignored on other platforms).
217217
Note that Windows junction points require the destination path to be absolute. When using
218218
`'junction'`, the `destination` argument will automatically be normalized to absolute path.
219219

220-
## fs.symlinkSync(srcpath, dstpath[, type])
220+
## fs.symlinkSync(destination, path[, type])
221221

222222
Synchronous symlink(2).
223223

0 commit comments

Comments
 (0)