File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -597,9 +597,14 @@ impl char {
597
597
/// Returns the number of 16-bit code units this `char` would need if
598
598
/// encoded in UTF-16.
599
599
///
600
+ /// That number of code units is always either 1 or 2, for unicode scalar values in
601
+ /// the [basic multilingual plane] or [supplementary planes] respectively.
602
+ ///
600
603
/// See the documentation for [`len_utf8()`] for more explanation of this
601
604
/// concept. This function is a mirror, but for UTF-16 instead of UTF-8.
602
605
///
606
+ /// [basic multilingual plane]: http://www.unicode.org/glossary/#basic_multilingual_plane
607
+ /// [supplementary planes]: http://www.unicode.org/glossary/#supplementary_planes
603
608
/// [`len_utf8()`]: #method.len_utf8
604
609
///
605
610
/// # Examples
You can’t perform that action at this time.
0 commit comments