Skip to content

Commit 2e6ee2b

Browse files
committed
fix from suffix to prefix
1 parent e2f13a4 commit 2e6ee2b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

reference/constraints/File.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ maxSize
156156
~~~~~~~
157157

158158
.. versionadded:: 2.6
159-
The suffixes ``Ki`` and ``Mi`` were introduced in Symfony 2.6.
159+
The prefixes ``Ki`` and ``Mi`` were introduced in Symfony 2.6.
160160

161161
**type**: ``mixed``
162162

163163
If set, the size of the underlying file must be below this file size in order
164164
to be valid. The size of the file can be given in one of the following formats:
165165

166166
+--------+-----------+-----------------+------+
167-
| Suffix | Unit Name | value | e.g. |
167+
| Prefix | Unit Name | value | e.g. |
168168
+========+===========+=================+======+
169169
| | byte | 1 byte | 4096 |
170170
+--------+-----------+-----------------+------+
@@ -177,7 +177,7 @@ to be valid. The size of the file can be given in one of the following formats:
177177
| Mi | mebibyte | 1,048,576 bytes | 8Mi |
178178
+--------+-----------+-----------------+------+
179179

180-
For more information about the difference between binary and SI suffixes,
180+
For more information about the difference between binary and SI prefixes,
181181
see `Wikipedia: Binary prefix`_.
182182

183183
binaryFormat
@@ -188,12 +188,12 @@ binaryFormat
188188

189189
**type**: ``boolean`` **default**: ``null``
190190

191-
When ``true``, the sizes will be displayed in messages with binary suffixes
192-
(KiB, MiB). When ``false``, the sizes will be displayed with SI suffixes (kB,
193-
MB). When ``null``, then the binaryFormat will be guessed from the suffix
194-
defined in the ``maxSize`` option.
191+
When ``true``, the sizes will be displayed in messages with binary-prefixed
192+
units (KiB, MiB). When ``false``, the sizes will be displayed with SI-prefixed
193+
units (kB, MB). When ``null``, then the binaryFormat will be guessed from
194+
the value defined in the ``maxSize`` option.
195195

196-
For more information about the difference between binary and SI suffixes,
196+
For more information about the difference between binary and SI prefixes,
197197
see `Wikipedia: Binary prefix`_.
198198

199199
mimeTypes

0 commit comments

Comments
 (0)