Skip to content

Commit c5e8556

Browse files
committed
Apply suggestions from text review
1 parent e47642c commit c5e8556

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

doc/dev_guide/internals/msgpack_extensions.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The MessagePack EXT type ``MP_EXT`` together with the extension type
2222

2323
``MP_DECIMAL`` type is 1.
2424

25-
`MessagePack spec <https://github.com/msgpack/msgpack/blob/master/spec.md>`_
25+
`MessagePack specification <https://github.com/msgpack/msgpack/blob/master/spec.md>`_
2626
defines two kinds of types:
2727

2828
* ``fixext 1/2/4/8/16`` types have fixed length so the length is not encoded explicitly.
@@ -110,7 +110,7 @@ The MessagePack EXT type ``MP_EXT`` together with the extension type
110110

111111
``MP_UUID`` type is 2.
112112

113-
The `MessagePack spec <https://github.com/msgpack/msgpack/blob/master/spec.md>`_
113+
The `MessagePack specification <https://github.com/msgpack/msgpack/blob/master/spec.md>`_
114114
defines ``d8`` to mean ``fixext`` with size 16, and a UUID's size is always 16.
115115
So the UUID MessagePack representation looks like this:
116116

@@ -251,12 +251,12 @@ The DATETIME type
251251
Since version :doc:`2.10.0 </release/2.10.0>`.
252252
The MessagePack EXT type ``MP_EXT`` together with the extension type
253253
``MP_DATETIME`` is a header for values of the DATETIME type.
254-
It creates a container of 8 or 16 bytes long payload.
254+
It creates a container with a payload of 8 or 16 bytes.
255255

256256
``MP_DATETIME`` type is 4.
257257

258-
The `MessagePack spec <https://github.com/msgpack/msgpack/blob/master/spec.md>`_
259-
defines ``d7``to mean ``fixext`` with size 8 or ``d8`` to mean ``fixext`` with size 16.
258+
The `MessagePack specification <https://github.com/msgpack/msgpack/blob/master/spec.md>`_
259+
defines ``d7`` to mean ``fixext`` with size 8 or ``d8`` to mean ``fixext`` with size 16.
260260

261261
So the datetime MessagePack representation looks like this:
262262

@@ -269,13 +269,13 @@ So the datetime MessagePack representation looks like this:
269269
270270
MessagePack data contains:
271271

272-
* Seconds (8b) as full, unencoded, signed 64-bit integer, stored in little-endian order.
272+
* Seconds (8 bytes) as an unencoded 64-bit signed integer stored in the little-endian order.
273273

274-
* The optional fields (8b), if any of them have a non-zero value.
275-
The fields include nsec, tzoffset, and tzindex, packed in little-endian order.
274+
* The optional fields (8 bytes), if any of them have a non-zero value.
275+
The fields include ``nsec``, ``tzoffset``, and ``tzindex`` packed in the little-endian order.
276276

277-
For more information about datetime, see :ref:`datetime field type details <index-box_datetime>`
278-
and :doc:`module datetime </reference/reference_lua/datetime>`.
277+
For more information about the datetime type, see :ref:`datetime field type details <index-box_datetime>`
278+
and :doc:`reference for the datetime module </reference/reference_lua/datetime>`.
279279

280280
.. _msgpack_ext-interval:
281281

@@ -289,8 +289,8 @@ The MessagePack EXT type ``MP_EXT`` together with the extension type
289289

290290
``MP_INTERVAL`` type is 6.
291291

292-
The interval is saved as variant of a map with predefined number of known attributes names.
293-
Some attributes might be undefined. In this case, they will be omitted from the generated payload.
292+
The interval is saved as a variant of a map with a predefined number of known attribute names.
293+
If some attributes are undefined, they are omitted from the generated payload.
294294

295295
The interval MessagePack representation looks like this:
296296

@@ -302,8 +302,8 @@ The interval MessagePack representation looks like this:
302302
303303
Packed interval consists of:
304304

305-
* packed number of non-zero fields
306-
* packed non-null fields
305+
* Packed number of non-zero fields.
306+
* Packed non-null fields.
307307

308308
Each packed field has the following structure:
309309

@@ -330,7 +330,7 @@ List of the field IDs:
330330

331331
**Example**
332332

333-
Interval value ``1 year, 200 months, -77 days`` is encoded in the following way:
333+
Interval value ``1 years, 200 months, -77 days`` is encoded in the following way:
334334

335335
.. code-block:: tarantoolsession
336336
@@ -343,7 +343,7 @@ Interval value ``1 year, 200 months, -77 days`` is encoded in the following way:
343343
- +1 years, 200 months, -77 days
344344
...
345345
346-
tarantool> M = msgpak.encode(I)
346+
tarantool> M = msgpack.encode(I)
347347
---
348348
...
349349
@@ -376,5 +376,5 @@ Where:
376376
* 08 -- field ID (adjust)
377377
* 01 -- packed value ``1`` (DT_LIMIT)
378378

379-
For more information about intervals, see :ref:`interval field type details <index-box_interval>`
380-
and :doc:`module datetime </reference/reference_lua/datetime>`.
379+
For more information about the interval type, see :ref:`interval field type details <index-box_interval>`
380+
and :doc:`description of the datetime module </reference/reference_lua/datetime>`.

locale/ru/LC_MESSAGES/dev_guide/internals/msgpack_extensions.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ msgid "``MP_DECIMAL`` type is 1."
3131
msgstr "MP_DECIMAL -- это 1."
3232

3333
msgid ""
34-
"`MessagePack spec <https://github.com/msgpack/msgpack/blob/master/spec.md>`_"
34+
"`MessagePack specification <https://github.com/msgpack/msgpack/blob/master/spec.md>`_"
3535
" defines two kinds of types:"
3636
msgstr ""
3737
"`Спецификация MessagePack "
@@ -178,7 +178,7 @@ msgid "``MP_UUID`` type is 2."
178178
msgstr "MP_UUID -- это 2."
179179

180180
msgid ""
181-
"The `MessagePack spec "
181+
"The `MessagePack specification "
182182
"<https://github.com/msgpack/msgpack/blob/master/spec.md>`_ defines ``d8`` to"
183183
" mean ``fixext`` with size 16, and a UUID's size is always 16. So the UUID "
184184
"MessagePack representation looks like this:"

0 commit comments

Comments
 (0)