diff options
Diffstat (limited to 'doc/socket.html')
-rw-r--r-- | doc/socket.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/socket.html b/doc/socket.html index 956993b..f638fd9 100644 --- a/doc/socket.html +++ b/doc/socket.html | |||
@@ -26,7 +26,7 @@ | |||
26 | <p class=bar> | 26 | <p class=bar> |
27 | <a href="home.html">home</a> · | 27 | <a href="home.html">home</a> · |
28 | <a href="home.html#download">download</a> · | 28 | <a href="home.html#download">download</a> · |
29 | <a href="instalation.html">instalation</a> · | 29 | <a href="installation.html">installation</a> · |
30 | <a href="introduction.html">introduction</a> · | 30 | <a href="introduction.html">introduction</a> · |
31 | <a href="reference.html">reference</a> | 31 | <a href="reference.html">reference</a> |
32 | </p> | 32 | </p> |
@@ -129,7 +129,7 @@ foo = socket.protect(function() | |||
129 | -- create a try function that closes 'c' on error | 129 | -- create a try function that closes 'c' on error |
130 | local try = socket.newtry(function() c:close() end) | 130 | local try = socket.newtry(function() c:close() end) |
131 | -- do everything reassured c will be closed | 131 | -- do everything reassured c will be closed |
132 | try(c:send("helo there?\r\n")) | 132 | try(c:send("hello there?\r\n")) |
133 | local answer = try(c:receive()) | 133 | local answer = try(c:receive()) |
134 | ... | 134 | ... |
135 | try(c:send("good bye\r\n")) | 135 | try(c:send("good bye\r\n")) |
@@ -383,7 +383,7 @@ This constant has a string describing the current LuaSocket version. | |||
383 | <p class=bar> | 383 | <p class=bar> |
384 | <a href="home.html">home</a> · | 384 | <a href="home.html">home</a> · |
385 | <a href="home.html#down">download</a> · | 385 | <a href="home.html#down">download</a> · |
386 | <a href="instalation.html">instalation</a> · | 386 | <a href="installation.html">installation</a> · |
387 | <a href="introduction.html">introduction</a> · | 387 | <a href="introduction.html">introduction</a> · |
388 | <a href="reference.html">reference</a> | 388 | <a href="reference.html">reference</a> |
389 | </p> | 389 | </p> |