Skip to content

Commit ba9baec

Browse files
authored
Fix typos in the remote.md
📝 Fixes electron#6387 [ci skip]
1 parent b02a83c commit ba9baec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/remote.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ exports.withRendererCallback = (mapper) => {
7474
};
7575

7676
exports.withLocalCallback = () => {
77-
return exports.mapNumbers(x => x + 1);
77+
return [1,2,3].map(x => x + 1);
7878
};
7979
```
8080

@@ -86,7 +86,7 @@ const withRendererCb = mapNumbers.withRendererCallback(x => x + 1);
8686

8787
const withLocalCb = mapNumbers.withLocalCallback();
8888

89-
console.log(withRendererCb, withLocalCb); // [true, true, true], [2, 3, 4]
89+
console.log(withRendererCb, withLocalCb); // [undefined, undefined, undefined], [2, 3, 4]
9090
```
9191

9292
As you can see, the renderer callback's synchronous return value was not as

0 commit comments

Comments
 (0)