From 802710cf62bbfe2a0b304c7b187e876897d51e08 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Wed, 17 Mar 2021 10:54:34 -0700 Subject: [PATCH] [Squash] nits Co-authored-by: Anna Henningsen --- doc/api/buffer.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 3826ee89bdcf3c..4a531e1d8aade3 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -3286,18 +3286,20 @@ added: REPLACEME * `data` {any} The Base64-encoded input string. -Decodes a string of Base64-encoded data into ASCII (Latin1). +Decodes a string of Base64-encoded data into bytes, and encodes those bytes +into a string using Latin-1 (ISO-8859-1). -The `data` may be any JavaScript-value that can be coerced into a string. +The `data` may be any JavaScript value that can be coerced into a string. ### `buffer.btoa(data)` -* `data` {any} An ASCII (Latin1) string. +* `data` {any} A Latin-1 string. -Encodes a string of ASCII characters into a Base64-encoded string. +Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes +into a string using Base64. The `data` may be any JavaScript-value that can be coerced into a string.