From 5843ae8dfba5db83f2c04ed2db847049cbd2ab0d Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 24 Dec 2014 00:54:39 +0100 Subject: [PATCH] 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 8146f2e6077df08ff9db01d400c186dc90df2d61. BUG: https://github.com/joyent/node/issues/8920 PR: https://github.com/joyent/node/pull/8936 --- doc/api/fs.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index cdd62e4b704a8f..822b13d7e7fca1 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -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).