mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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 8146f2e607.
BUG: https://github.com/joyent/node/issues/8920
PR: https://github.com/joyent/node/pull/8936
This commit is contained in:
@@ -208,7 +208,7 @@ the completion callback.
|
||||
|
||||
Synchronous link(2).
|
||||
|
||||
## fs.symlink(srcpath, dstpath[, type], callback)
|
||||
## fs.symlink(destination, path[, type], callback)
|
||||
|
||||
Asynchronous symlink(2). No arguments other than a possible exception are given
|
||||
to the completion callback.
|
||||
@@ -217,7 +217,7 @@ is `'file'`) and is only available on Windows (ignored on other platforms).
|
||||
Note that Windows junction points require the destination path to be absolute. When using
|
||||
`'junction'`, the `destination` argument will automatically be normalized to absolute path.
|
||||
|
||||
## fs.symlinkSync(srcpath, dstpath[, type])
|
||||
## fs.symlinkSync(destination, path[, type])
|
||||
|
||||
Synchronous symlink(2).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user