Skip to content

Commit 331f907

Browse files
committed
doc: add two missing char methods doc-strings
XID_* property are defined in UAX #31, just reference it here. Signed-off-by: Luca Bruno <[email protected]>
1 parent 9b3c63b commit 331f907

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/libstd/char.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,19 @@ pub fn from_u32(i: u32) -> Option<char> {
9494
/// Returns whether the specified `char` is considered a Unicode alphabetic
9595
/// code point
9696
pub fn is_alphabetic(c: char) -> bool { derived_property::Alphabetic(c) }
97-
#[allow(missing_doc)]
97+
98+
/// Returns whether the specified `char` satisfies the 'XID_Start' Unicode property
99+
///
100+
/// 'XID_Start' is a Unicode Derived Property specified in
101+
/// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications),
102+
/// mostly similar to ID_Start but modified for closure under NFKx.
98103
pub fn is_XID_start(c: char) -> bool { derived_property::XID_Start(c) }
99-
#[allow(missing_doc)]
104+
105+
/// Returns whether the specified `char` satisfies the 'XID_Continue' Unicode property
106+
///
107+
/// 'XID_Continue' is a Unicode Derived Property specified in
108+
/// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications),
109+
/// mostly similar to 'ID_Continue' but modified for closure under NFKx.
100110
pub fn is_XID_continue(c: char) -> bool { derived_property::XID_Continue(c) }
101111

102112
///

0 commit comments

Comments
 (0)