From 8191972d217f09790b599acbbba527b1c5d9f154 Mon Sep 17 00:00:00 2001
From: ocelot-inc <pgulutzan@ocelot.ca>
Date: Tue, 11 Nov 2014 15:54:48 -0700
Subject: [PATCH] six very small changes

---
 doc/user/databases.xml         | 13 ++++++++-----
 doc/user/plugins.xml           |  3 ++-
 doc/user/stored-procedures.xml |  8 ++++----
 3 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/doc/user/databases.xml b/doc/user/databases.xml
index 12b1617da6..2849948c68 100644
--- a/doc/user/databases.xml
+++ b/doc/user/databases.xml
@@ -1179,7 +1179,7 @@ console.delimiter('')!</programlisting>
         </term>
         <listitem>
             <para>
-             _user is a new system tuple set for support of the authorization feature.
+             _user is a new system tuple set for support of the <link linkend="authentication">authorization feature</link>.
             </para>
         </listitem>
     </varlistentry>
@@ -1201,7 +1201,7 @@ console.delimiter('')!</programlisting>
         </term>
         <listitem>
             <para>
-             _cluster is a new system tuple set for support of the replication feature.
+             _cluster is a new system tuple set for support of the <olink targetptr="replication">replication feature</olink>.
             </para>
         </listitem>
     </varlistentry>
@@ -1499,7 +1499,7 @@ The result will be a table of tuples and will look like this:
 
     <varlistentry>
         <term>
-         <emphasis role="lua">box.space.<replaceable>space-name</replaceable>.index.<replaceable>index-name</replaceable>:min([<replaceable>key</replaceable>])</emphasis>
+         <emphasis role="lua">box.space.<replaceable>space-name</replaceable>.index.<replaceable>index-name</replaceable>:min([<replaceable>key-value</replaceable>])</emphasis>
         </term>
         <listitem>
             <para>
@@ -1507,6 +1507,7 @@ The result will be a table of tuples and will look like this:
             </para>
             <para>
               Returns: (type = tuple) the tuple for the first key in the index.
+              If optional <code>key-value</code> is supplied, returns the first key which is greater than or equal to key-value.
             </para>
             <para>
               Complexity Factors: Index size, Index type.
@@ -1527,7 +1528,7 @@ The result will be a table of tuples and will look like this:
 
     <varlistentry>
         <term>
-         <emphasis role="lua">box.space.<replaceable>space-name</replaceable>.index.<replaceable>index-name</replaceable>:max([<replaceable>key</replaceable>])</emphasis>
+         <emphasis role="lua">box.space.<replaceable>space-name</replaceable>.index.<replaceable>index-name</replaceable>:max([<replaceable>key-value</replaceable>])</emphasis>
         </term>
         <listitem>
             <para>
@@ -1535,6 +1536,7 @@ The result will be a table of tuples and will look like this:
             </para>
             <para>
               Returns: (type = tuple) the tuple for the last key in the index.
+              If optional <code>key-value</code> is supplied, returns the last key which is less than or equal to key-value.
             </para>
             <para>
               Complexity Factors: Index size, Index type.
@@ -2016,7 +2018,8 @@ tarantool&gt; <userinput>t:transform(2,2,'x')</userinput>
               then the result is returned.
             </para>
             <para>
-              Parameters: <code>start-field-number</code> = base 1, may be negative, <code>end-field-number</code> = optional, base 1, negative treated as positive.
+              Parameters: <code>start-field-number</code> = base 1, may be negative, <code>end-field-number</code> = optional, base 1, may be negative.
+              Negative values are counted from the end, for example -2 means the second-last field.
             </para>
             <para>
               Returns: (type = scalar) one or more field values.
diff --git a/doc/user/plugins.xml b/doc/user/plugins.xml
index a9b2701039..029edf6a38 100644
--- a/doc/user/plugins.xml
+++ b/doc/user/plugins.xml
@@ -63,7 +63,8 @@ on the local host 127.0.0.1.
 </para>
 
 <programlisting>
-# Check that the include subdirectory exists by looking for ~/include/mysql.h.
+# Check that the include subdirectory exists by looking for .../include/mysql.h.
+# (If this fails, there's a chance that it's in .../include/mysql/mysql.h instead.)
 <prompt>$ </prompt><userinput>[ -f ~/mysql-5.5/include/mysql.h ] &amp;&amp; echo "OK" || echo "Error"</userinput>
 OK
 
diff --git a/doc/user/stored-procedures.xml b/doc/user/stored-procedures.xml
index 9f58ec6935..e675abdeb0 100644
--- a/doc/user/stored-procedures.xml
+++ b/doc/user/stored-procedures.xml
@@ -629,11 +629,11 @@ tarantool&gt; <userinput>json.decode('{"hello": "world"}').hello</userinput>
             </para>
             <bridgehead renderas="sect4">Example</bridgehead>
 <programlisting>
-<prompt>tarantool&gt;</prompt> <userinput>-- When nil is assigned to a Lua-table field, the field disappears</userinput>
+<prompt>tarantool&gt;</prompt> <userinput>-- When nil is assigned to a Lua-table field, the field is null</userinput>
 <prompt>tarantool&gt;</prompt> <userinput>{nil, 'a', 'b'}</userinput>
----
-- 2: a
-  3: b
+- - null
+  - a
+  - b
 ...
 <prompt>tarantool&gt;</prompt> <userinput> -- When json.NULL is assigned to a Lua-table field, the field is json.NULL</userinput>
 <prompt>tarantool&gt;</prompt> <userinput>{json.NULL, 'a', 'b'}</userinput>
-- 
GitLab