From cb691100f187db57d7e2efdbb471188a5003c97f Mon Sep 17 00:00:00 2001 From: Delet0r Date: Wed, 8 May 2019 15:03:34 +0200 Subject: [PATCH] corretected unit of UTF-16 from byte to bit --- guide/src/reference/types/str.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/reference/types/str.md b/guide/src/reference/types/str.md index 5de5f166..0e152165 100644 --- a/guide/src/reference/types/str.md +++ b/guide/src/reference/types/str.md @@ -25,7 +25,7 @@ with handles to JavaScript string values, use the `js_sys::JsString` type. Strings in JavaScript are encoded as UTF-16, but with one major exception: they can contain unpaired surrogates. For some Unicode characters UTF-16 uses two -16-byte values. These are called "surrogate pairs" because they always come in +16-bit values. These are called "surrogate pairs" because they always come in pairs. In JavaScript, it is possible for these surrogate pairs to be missing the other half, creating an "unpaired surrogate".