Fix typos in the remote.md

📝 Fixes #6387

[ci skip]
This commit is contained in:
vsemozhetbyt 2016-07-08 04:00:22 +03:00 committed by GitHub
parent b02a83c96e
commit ba9baec27f

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