Browse Source

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
v1.8.0-commit
Bert Belder 10 years ago
parent
commit
5843ae8dfb
  1. 4
      doc/api/fs.markdown

4
doc/api/fs.markdown

@ -208,7 +208,7 @@ the completion callback.
Synchronous link(2). 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 Asynchronous symlink(2). No arguments other than a possible exception are given
to the completion callback. 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 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. `'junction'`, the `destination` argument will automatically be normalized to absolute path.
## fs.symlinkSync(srcpath, dstpath[, type]) ## fs.symlinkSync(destination, path[, type])
Synchronous symlink(2). Synchronous symlink(2).

Loading…
Cancel
Save