DOC: lua: Fix typos in comments of hlua_socket_receive

This commit is contained in:
Tim Duesterhus 2018-01-04 19:32:14 +01:00 committed by Willy Tarreau
parent c6e377e6bb
commit b33754ce86

View File

@ -1810,19 +1810,19 @@ connection_empty:
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 @@ __LJMP static int hlua_socket_receive(struct lua_State *L)
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. */