Skip to content

Commit 1e8fa48

Browse files
author
Jérémy Derussé
committed
Replace bullet list by a table
1 parent 77a0687 commit 1e8fa48

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

reference/constraints/File.rst

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,19 @@ maxSize
162162
If set, the size of the underlying file must be below this file size in order
163163
to be valid. The size of the file can be given in one of the following formats:
164164

165-
* **bytes**: To specify the ``maxSize`` in bytes, pass a value that is entirely
166-
numeric (e.g. ``4096``);
167-
168-
* **kilobytes**: To specify the ``maxSize`` in kilobytes, pass a number and
169-
suffix it with a "k" (e.g. ``200k``); 1k = 1,000 bytes;
170-
171-
* **megabytes**: To specify the ``maxSize`` in megabytes, pass a number and
172-
suffix it with a "M" (e.g. ``4M``); 1M = 1,000,000 bytes;
173-
174-
* **kibibytes**: To specify the ``maxSize`` in kibibytes, pass a number and
175-
suffix it with a "Ki" (e.g. ``600Ki``); 1Ki = 1,024 bytes;
176-
177-
* **mebibytes**: To specify the ``maxSize`` in mebibytes, pass a number and
178-
suffix it with a "Mi" (e.g. ``8Mi``); 1Mi = 1,048,576 bytes.
165+
+--------+-----------+-----------------+------+
166+
| Suffix | Unit Name | value | e.g. |
167+
+========+===========+=================+======+
168+
| | byte | 1 byte | 4096 |
169+
+--------+-----------+-----------------+------+
170+
| k | kilobyte | 1,000 bytes | 200k |
171+
+--------+-----------+-----------------+------+
172+
| M | megabyte | 1,000,000 bytes | 2M |
173+
+--------+-----------+-----------------+------+
174+
| Ki | kibibyte | 1,024 bytes | 32Ki |
175+
+--------+-----------+-----------------+------+
176+
| Mi | mebibyte | 1,048,576 bytes | 8Mi |
177+
+--------+-----------+-----------------+------+
179178

180179
For more information about the difference between binary and SI suffixes,
181180
see `Wikipedia: Binary prefix`_.

0 commit comments

Comments
 (0)