Skip to content

Commit

Permalink
Merge pull request #1518 from Delet0r/patch-1
Browse files Browse the repository at this point in the history
corretected unit of UTF-16 from byte to bit
  • Loading branch information
alexcrichton committed May 8, 2019
2 parents 19c3036 + cb69110 commit 61e2a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/reference/types/str.md
Original file line number Diff line number Diff line change
Expand Up @@ -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".

Expand Down

0 comments on commit 61e2a12

Please sign in to comment.