Skip to content

Commit c340935

Browse files
authored
docs: Fix syntax errors (#79)
This fixes two syntactical errors in code examples in the main README.md
1 parent 7c4207a commit c340935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ let friendsPromise = authedApi.getFriendIds();
146146
// too, so use the magic .map() function to get them, too! Still one round
147147
// trip.
148148
let friendProfilesPromise = friendsPromise.map((id: RpcPromise<number>) => {
149-
return { id, profile: api.getUserProfile(id); };
149+
return { id, profile: api.getUserProfile(id) };
150150
});
151151

152152
// Now await the promises. The batch is sent at this point. It's important
@@ -708,7 +708,7 @@ You can then set up a connection over it:
708708
let transport: RpcTransport = new MyTransport();
709709

710710
// Create the main interface we will expose to the other end.
711-
let localMain: RpcTarget = new MyMainInterface():
711+
let localMain: RpcTarget = new MyMainInterface();
712712

713713
// Start the session.
714714
let session = new RpcSession<RemoteMainInterface>(transport, localMain);

0 commit comments

Comments
 (0)