From ba9baec27f7935ea7da24b16b60b0e099e0aae4e Mon Sep 17 00:00:00 2001 From: vsemozhetbyt Date: Fri, 8 Jul 2016 04:00:22 +0300 Subject: [PATCH] Fix typos in the remote.md :memo: Fixes #6387 [ci skip] --- docs/api/remote.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/remote.md b/docs/api/remote.md index e3ed3eb..aa1b808 100644 --- a/docs/api/remote.md +++ b/docs/api/remote.md @@ -74,7 +74,7 @@ exports.withRendererCallback = (mapper) => { }; exports.withLocalCallback = () => { - return exports.mapNumbers(x => x + 1); + return [1,2,3].map(x => x + 1); }; ``` @@ -86,7 +86,7 @@ const withRendererCb = mapNumbers.withRendererCallback(x => x + 1); const withLocalCb = mapNumbers.withLocalCallback(); -console.log(withRendererCb, withLocalCb); // [true, true, true], [2, 3, 4] +console.log(withRendererCb, withLocalCb); // [undefined, undefined, undefined], [2, 3, 4] ``` As you can see, the renderer callback's synchronous return value was not as -- 2.7.4