Merge pull request #6392 from vsemozhetbyt/patch-2

Fix typos in the remote.md
This commit is contained in:
Cheng Zhao 2016-07-08 10:03:32 +09:00 committed by GitHub
commit 204734f80b

View file

@ -74,7 +74,7 @@ exports.withRendererCallback = (mapper) => {
}; };
exports.withLocalCallback = () => { 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(); 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 As you can see, the renderer callback's synchronous return value was not as