diff --git a/doc/user/stored-programs.xml b/doc/user/stored-programs.xml
index d6a10205d034a75d9d68945014485fa5f18a77d7..a5f3e4a1a2aa8eb36a4c74d128c5b297aded72da 100644
--- a/doc/user/stored-programs.xml
+++ b/doc/user/stored-programs.xml
@@ -815,16 +815,6 @@ xreflabel="box.index">box.index</code></title>
         </simpara></listitem>
     </varlistentry>
 
-    <varlistentry>
-        <term>
-            <emphasis role="lua">index:pairs()</emphasis>
-        </term>
-        <listitem><simpara>
-            A helper function to iterate over all tuples in the index.
-        </simpara>
-        </listitem>
-    </varlistentry>
-
     <varlistentry>
         <term>
             <emphasis role="lua">index:min()</emphasis>
@@ -867,7 +857,7 @@ xreflabel="box.index">box.index</code></title>
             resuming iteration from a given key. It follows the
             <link xlink:href='http://pgl.yoyo.org/luai/i/next'>Lua
             iteration pattern</link> and returns a pair
-            <code>&gt;iteration_state, tuple&lt;</code>.
+            <code>&lt;iteration_state, tuple&gt;</code>.
             When called with no arguments, it starts iteration
             from the beginning. If called with userdata
             <code>iteration_state</code>, it returns a tuple