Skip to content

Commit 6a075d8

Browse files
committed
Fixes gh-919
1 parent a720c06 commit 6a075d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/book/box/box_space.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ Below is a list of all ``box.space`` functions and members.
293293
+---------------------+-------------------------------------------------------+----------------------------------+-------------------------------+
294294
| if_not_exists | no error if duplicate name | boolean | ``false`` |
295295
+---------------------+-------------------------------------------------------+----------------------------------+-------------------------------+
296-
| parts | field-numbers + types | {field_no, 'unsigned' or | ``{1, 'unsigned'}`` |
296+
| parts | field-numbers + types | {field_no, 'unsigned' or | ``{field = 1, type = 'unsigned'}`` |
297297
| | | 'string' or 'integer' or | |
298298
| | | 'number' or 'boolean' or | |
299299
| | | 'array' or 'scalar', | |

doc/book/box/data_model.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ field #1 of each tuple:
9595

9696
.. code-block:: tarantoolsession
9797
98-
tarantool> i = s:create_index('primary', {type = 'hash', parts = {1, 'unsigned'}})
98+
tarantool> i = s:create_index('primary', {type = 'hash', parts = {field = 1, type = 'unsigned'}})
99+
99100
100101
The effect is that, for all tuples in space 'tester', field #1 must exist and
101102
must contain an unsigned integer.

0 commit comments

Comments
 (0)