Re: MINOR: doc-lua: few typos.

2015-10-04 Thread Willy Tarreau
Resending after some mails were lost du to low space on device...

On Fri, Oct 02, 2015 at 11:07:05PM +0200, Willy Tarreau wrote:
> On Fri, Oct 02, 2015 at 12:02:27PM +0100, David Carlier wrote:
> > Hi,
> > 
> > found few typos in the lua doc.
> 
> Applied, thanks David!
> 
> Willy
> 



MINOR: doc-lua: few typos.

2015-10-02 Thread David Carlier
Hi,

found few typos in the lua doc.

regards,
From 2b6d53fa07adfbd09edfd841b004f8cd2d7d6f82 Mon Sep 17 00:00:00 2001
From: David Carlier 
Date: Fri, 2 Oct 2015 11:59:38 +0100
Subject: [PATCH] MINOR: doc-lua: few typos.

---
 doc/lua-api/index.rst | 22 +++---
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst
index 54eae8f..b13b6b1 100644
--- a/doc/lua-api/index.rst
+++ b/doc/lua-api/index.rst
@@ -27,7 +27,7 @@ functions. Lua have 6 execution context.
executed in initialisation mode. This section is use for configuring Lua
bindings in HAProxy.
 
-2. The Lua **init context**. It is an Lua function executed just after the
+2. The Lua **init context**. It is a Lua function executed just after the
HAProxy configuration parsing. The execution is in initialisation mode. In
this context the HAProxy environment are already initialized. It is useful to
check configuration, or initializing socket connections or tasks. These
@@ -35,14 +35,14 @@ functions. Lua have 6 execution context.
`core.register_init()`. The prototype of the function is a simple function
without return value and without parameters, like this: `function fcn()`.
 
-3. The Lua **task context**. It is an Lua function executed after the start
+3. The Lua **task context**. It is a Lua function executed after the start
of the HAProxy scheduler, and just after the declaration of the task with the
Lua function `core.register_task()`. This context can be concurrent with the
traffic processing. It is executed in runtime mode. The prototype of the
function is a simple function without return value and without parameters,
like this: `function fcn()`.
 
-4. The **action context**. It is an Lua function conditionally executed. These
+4. The **action context**. It is a Lua function conditionally executed. These
actions are declared by the HAProxy directives "`tcp-request content lua
`", "`tcp-response content lua `", "`http-request lua
`" and "`http-response lua `". The prototype of the
@@ -61,7 +61,7 @@ functions. Lua have 6 execution context.
in the original HAProxy sample-fetches, in this case, it cannot return the
result. This case is not yet supported
 
-6. The **converter context**. It is an Lua function that takes a string as input
+6. The **converter context**. It is a Lua function that takes a string as input
and returns another string as output. These types of function are stateless,
it cannot access to any context. They don't execute any blocking function.
The call prototype is `function string fcn(string)`. This function can be
@@ -116,7 +116,7 @@ Core class
"core" class is basically provided with HAProxy. No `require` line is
required to uses these function.
 
-   The "core" class is static, t is not possible to create a new object of this
+   The "core" class is static, it is not possible to create a new object of this
type.
 
 .. js:attribute:: core.emerg
@@ -155,7 +155,7 @@ Core class
 
   **context**: body, init, task, action, sample-fetch, converter
 
-  This fucntion sends a log. The log is sent, according with the HAProxy
+  This function sends a log. The log is sent, according with the HAProxy
   configuration file, on the default syslog server if it is configured and on
   the stderr if it is allowed.
 
@@ -268,7 +268,7 @@ Core class
 
   **context**: body
 
-  Register an Lua function executed as action. All the registered action can be
+  Register a Lua function executed as action. All the registered action can be
   used in HAProxy with the prefix "lua.". An action gets a TXN object class as
   input.
 
@@ -314,7 +314,7 @@ Core class
 
   **context**: body
 
-  Register an Lua function executed as converter. All the registered converters
+  Register a Lua function executed as converter. All the registered converters
   can be used in HAProxy with the prefix "lua.". An converter get a string as
   input and return a string as output. The registered function can take up to 9
   values as parameter. All the value are strings.
@@ -340,7 +340,7 @@ Core class
 
   **context**: body
 
-  Register an Lua function executed as sample fetch. All the registered sample
+  Register a Lua function executed as sample fetch. All the registered sample
   fetchs can be used in HAProxy with the prefix "lua.". A Lua sample fetch
   return a string as output. The registered function can take up to 9 values as
   parameter. All the value are strings.
@@ -384,7 +384,7 @@ Core class
 
   **context**: body
 
-  Register an Lua function executed as a service. All the registered service can
+  Register a Lua function executed as a service. All the registered service can
   be used in HAProxy with the prefix "lua.". A service gets an object class as
   input according with the required