Skip to content

Commit 712c220

Browse files
committed
minor update function examples/descriptions
1 parent 2668c87 commit 712c220

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/preview/sql/functions/text.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This section describes functions and operators for examining and manipulating [`
3838
| [`contains(string, search_string)`](#containsstring-search_string) | Returns `true` if `search_string` is found within `string`. |
3939
| [`ends_with(string, search_string)`](#ends_withstring-search_string) | Returns `true` if `string` ends with `search_string`. |
4040
| [`format(format, ...)`](#formatformat-) | Formats a string using the [fmt syntax](#fmt-syntax). |
41-
| [`formatReadableDecimalSize(integer)`](#formatreadabledecimalsizeinteger) | Converts `integer` to a human-readable representation (e.g. 16000 -> 16.0 KB). |
41+
| [`formatReadableDecimalSize(integer)`](#formatreadabledecimalsizeinteger) | Converts `integer` to a human-readable representation using units based on powers of 10 (KB, MB, GB, etc.). |
4242
| [`formatReadableSize(integer)`](#formatreadablesizeinteger) | Converts `integer` to a human-readable representation using units based on powers of 2 (KiB, MiB, GiB, etc.). |
4343
| [`format_bytes(integer)`](#format_bytesinteger) | Converts `integer` to a human-readable representation using units based on powers of 2 (KiB, MiB, GiB, etc.). |
4444
| [`from_base64(string)`](#from_base64string) | Converts a base64 encoded `string` to a character string (`BLOB`). |
@@ -315,16 +315,16 @@ This section describes functions and operators for examining and manipulating [`
315315

316316
<div class="nostroke_table"></div>
317317

318-
| **Description** | Converts `integer` to a human-readable representation (e.g. 16000 -> 16.0 KB). |
319-
| **Example** | `formatReadableDecimalSize(1000 * 16)` |
318+
| **Description** | Converts `integer` to a human-readable representation using units based on powers of 10 (KB, MB, GB, etc.). |
319+
| **Example** | `formatReadableDecimalSize(16_000)` |
320320
| **Result** | `16.0 kB` |
321321

322322
#### `formatReadableSize(integer)`
323323

324324
<div class="nostroke_table"></div>
325325

326326
| **Description** | Converts `integer` to a human-readable representation using units based on powers of 2 (KiB, MiB, GiB, etc.). |
327-
| **Example** | `formatReadableSize(1000 * 16)` |
327+
| **Example** | `formatReadableSize(16_000)` |
328328
| **Result** | `15.6 KiB` |
329329
| **Alias** | `format_bytes` |
330330

@@ -333,7 +333,7 @@ This section describes functions and operators for examining and manipulating [`
333333
<div class="nostroke_table"></div>
334334

335335
| **Description** | Converts `integer` to a human-readable representation using units based on powers of 2 (KiB, MiB, GiB, etc.). |
336-
| **Example** | `format_bytes(1000 * 16)` |
336+
| **Example** | `format_bytes(16_000)` |
337337
| **Result** | `15.6 KiB` |
338338
| **Alias** | `formatReadableSize` |
339339

0 commit comments

Comments
 (0)