Skip to content

Commit becd389

Browse files
committed
Edit the min() description accordingly
1 parent 814cb0f commit becd389

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

doc/reference/reference_lua/box_index/max.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ index_object:max()
1414
:param scalar/table key: values to be matched against the index key
1515

1616
:return: the tuple for the last key in the index. If the optional ``key`` value
17-
is supplied, returns the last key which is less than or equal to ``key``.
18-
Starting with :doc:`Tarantool 2.0.4 <release/2.1.2>`, ``index_object:max(key)``
17+
is supplied, returns the last key that is less than or equal to ``key``.
18+
Starting with :doc:`Tarantool 2.0.4 </release/2.1.2>`, ``index_object:max(key)``
1919
returns nothing if ``key`` doesn't match any value in the index.
2020
:rtype: tuple
2121

doc/reference/reference_lua/box_index/min.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ index_object:min()
1414
<app_server-object_reference>`.
1515
:param scalar/table key: values to be matched against the index key
1616

17-
:return: the tuple for the first key in the index. If optional
18-
``key`` value is supplied, returns the first key which
19-
is greater than or equal to ``key`` value.
20-
Starting with Tarantool version 2.0, index_object:min(``key``
21-
value) will return nothing
22-
if ``key`` value is not equal to a value in the index.
17+
:return: the tuple for the first key in the index. If the optional
18+
``key`` value is supplied, returns the first key that is greater than or equal to ``key``.
19+
Starting with :doc:`Tarantool 2.0.4 </release/2.1.2>`,
20+
``index_object:min(key)`` returns nothing
21+
if ``key`` doesn't match any value in the index.
2322
:rtype: tuple
2423

2524
**Possible errors:** index is not of type 'TREE'.

0 commit comments

Comments
 (0)