]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: lua: Fix typos in comments of hlua_socket_receive
authorTim Duesterhus <tim@bastelstu.be>
Thu, 4 Jan 2018 18:32:14 +0000 (19:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Jan 2018 14:22:49 +0000 (15:22 +0100)
src/hlua.c

index 285d25589e0fe917496982b95c59b7f70c1aa5b0..3b4fc3b54e09c1217aa084da128152d61a2661dd 100644 (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. */