Skip to content

Commit

Permalink
Clarify documentation on char::MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
GKFX committed Jan 27, 2022
1 parent 8cdb3cd commit 2fb617c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/core/src/char/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ use super::*;

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

0 comments on commit 2fb617c

Please sign in to comment.