@@ -69,7 +69,7 @@ pure fn is_uppercase(c: char) -> bool {
69
69
}
70
70
71
71
/**
72
- * Indicates whether a character is whitespace, defined in
72
+ * Indicates whether a character is whitespace. Whitespace is defined in
73
73
* terms of the Unicode General Categories 'Zs', 'Zl', 'Zp'
74
74
* additional 'Cc'-category control codes in the range [0x09, 0x0d]
75
75
*/
@@ -81,9 +81,9 @@ pure fn is_whitespace(c: char) -> bool {
81
81
}
82
82
83
83
/**
84
- * Indicates whether a character is alphanumeric, defined
85
- * in terms of the Unicode General Categories 'Nd',
86
- * 'Nl', 'No' and the Derived Core Property 'Alphabetic'.
84
+ * Indicates whether a character is alphanumeric. Alphanumericness is
85
+ * defined in terms of the Unicode General Categories 'Nd', 'Nl', 'No'
86
+ * and the Derived Core Property 'Alphabetic'.
87
87
*/
88
88
pure fn is_alphanumeric ( c : char ) -> bool {
89
89
return unicode:: derived_property:: Alphabetic ( c) ||
@@ -107,10 +107,6 @@ pure fn is_digit(c: char) -> bool {
107
107
/**
108
108
* Convert a char to the corresponding digit.
109
109
*
110
- * # Safety note
111
- *
112
- * This function returns none if `c` is not a valid char
113
- *
114
110
* # Return value
115
111
*
116
112
* If `c` is between '0' and '9', the corresponding value
0 commit comments