Skip to content

Commit 2fb617c

Browse files
committed
Clarify documentation on char::MAX
1 parent 8cdb3cd commit 2fb617c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/char/methods.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ use super::*;
99

1010
#[lang = "char"]
1111
impl char {
12-
/// The highest valid code point a `char` can have.
12+
/// The highest valid code point a `char` can have, 0x10FFFF.
1313
///
14-
/// A `char` is a [Unicode Scalar Value], which means that it is a [Code
15-
/// Point], but only ones within a certain range. `MAX` is the highest valid
16-
/// code point that's a valid [Unicode Scalar Value].
14+
/// A [Code Point] is any value between zero and `char::MAX`, inclusive. A
15+
/// `char` is a [Unicode Scalar Value], which is a Code Point that is not
16+
/// in the range `0xD800..=0xDFFF`.
1717
///
1818
/// [Unicode Scalar Value]: https://www.unicode.org/glossary/#unicode_scalar_value
1919
/// [Code Point]: https://www.unicode.org/glossary/#code_point

0 commit comments

Comments
 (0)