Browse Source

Fix typos in the remote.md

:memo: Fixes #6387

[ci skip]
vsemozhetbyt 8 years ago
parent
commit
ba9baec27f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/api/remote.md

+ 2 - 2
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