DOC: lua: Fix typos in comments of hlua_socket_receive
diff --git a/src/hlua.c b/src/hlua.c
index 285d255..3b4fc3b 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -1810,19 +1810,19 @@
return 0;
}
-/* This Lus function gets two parameters. The first one can be string
- * or a number. If the string is "*l", the user require one line. If
- * the string is "*a", the user require all the content of the stream.
+/* This Lua function gets two parameters. The first one can be string
+ * or a number. If the string is "*l", the user requires one line. If
+ * the string is "*a", the user requires all the contents of the stream.
* If the value is a number, the user require a number of bytes equal
* to the value. The default value is "*l" (a line).
*
- * This paraeter with a variable type is converted in integer. This
+ * This parameter with a variable type is converted in integer. This
* integer takes this values:
* -1 : read a line
* -2 : read all the stream
- * >0 : amount if bytes.
+ * >0 : amount of bytes.
*
- * The second parameter is optinal. It contains a string that must be
+ * The second parameter is optional. It contains a string that must be
* concatenated with the read data.
*/
__LJMP static int hlua_socket_receive(struct lua_State *L)
@@ -1874,7 +1874,7 @@
if (lua_gettop(L) != 2)
lua_replace(L, 2);
- /* init bufffer, and fiil it wih prefix. */
+ /* init buffer, and fill it with prefix. */
luaL_buffinit(L, &socket->b);
/* Check prefix. */