Skip to content

Commit 802710c

Browse files
jasnelladdaleax
andauthored
[Squash] nits
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 2f13bde commit 802710c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/api/buffer.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -3286,18 +3286,20 @@ added: REPLACEME
32863286

32873287
* `data` {any} The Base64-encoded input string.
32883288

3289-
Decodes a string of Base64-encoded data into ASCII (Latin1).
3289+
Decodes a string of Base64-encoded data into bytes, and encodes those bytes
3290+
into a string using Latin-1 (ISO-8859-1).
32903291

3291-
The `data` may be any JavaScript-value that can be coerced into a string.
3292+
The `data` may be any JavaScript value that can be coerced into a string.
32923293

32933294
### `buffer.btoa(data)`
32943295
<!-- YAML
32953296
added: REPLACEME
32963297
-->
32973298

3298-
* `data` {any} An ASCII (Latin1) string.
3299+
* `data` {any} A Latin-1 string.
32993300

3300-
Encodes a string of ASCII characters into a Base64-encoded string.
3301+
Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes
3302+
into a string using Base64.
33013303

33023304
The `data` may be any JavaScript-value that can be coerced into a string.
33033305

0 commit comments

Comments
 (0)