Skip to content

Commit 10e561b

Browse files
committed
Small documentation fixes
1 parent 2024351 commit 10e561b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
<pre class="prettyprint">
195195
// client-side
196196
var socket = io.connect();
197-
socket.emit('set nickname', 'john', function (response) [
197+
socket.emit('set nickname', 'john', function (response) {
198198
console.log(response);
199199
});
200200

@@ -424,7 +424,7 @@
424424
});
425425

426426
socket.on('msg', function () {
427-
socket.get('nickname', function (name) {
427+
socket.get('nickname', function (err, name) {
428428
console.log('Chat message by ', name);
429429
});
430430
});
@@ -603,4 +603,4 @@
603603
<a href="http://github.com/learnboost/socket.io"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub" /></a>
604604

605605
</body>
606-
</html>
606+
</html>

0 commit comments

Comments
 (0)