Skip to content

Commit 3480986

Browse files
committed
core: Minor doc tweakage
1 parent 0bd02b1 commit 3480986

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/libcore/at_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Shared Vectors
1+
//! Managed vectors
22
33
use ptr::addr_of;
44

src/libcore/box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Operations on shared box types
1+
//! Operations on managed box types
22
33
// NB: transitionary, de-mode-ing.
44
#[forbid(deprecated_mode)];

src/libcore/char.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pure fn is_uppercase(c: char) -> bool {
6969
}
7070

7171
/**
72-
* Indicates whether a character is whitespace, defined in
72+
* Indicates whether a character is whitespace. Whitespace is defined in
7373
* terms of the Unicode General Categories 'Zs', 'Zl', 'Zp'
7474
* additional 'Cc'-category control codes in the range [0x09, 0x0d]
7575
*/
@@ -81,9 +81,9 @@ pure fn is_whitespace(c: char) -> bool {
8181
}
8282

8383
/**
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'.
8787
*/
8888
pure fn is_alphanumeric(c: char) -> bool {
8989
return unicode::derived_property::Alphabetic(c) ||
@@ -107,10 +107,6 @@ pure fn is_digit(c: char) -> bool {
107107
/**
108108
* Convert a char to the corresponding digit.
109109
*
110-
* # Safety note
111-
*
112-
* This function returns none if `c` is not a valid char
113-
*
114110
* # Return value
115111
*
116112
* If `c` is between '0' and '9', the corresponding value

0 commit comments

Comments
 (0)