From 3480986408b2a9ea07a3eaf849942ac3cb797b5d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 20 Sep 2012 15:33:52 -0700 Subject: [PATCH] core: Minor doc tweakage --- src/libcore/at_vec.rs | 2 +- src/libcore/box.rs | 2 +- src/libcore/char.rs | 12 ++++-------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/libcore/at_vec.rs b/src/libcore/at_vec.rs index 19003568354..bc0f4c62af7 100644 --- a/src/libcore/at_vec.rs +++ b/src/libcore/at_vec.rs @@ -1,4 +1,4 @@ -//! Shared Vectors +//! Managed vectors use ptr::addr_of; diff --git a/src/libcore/box.rs b/src/libcore/box.rs index 294b307f0d6..fe1e10af715 100644 --- a/src/libcore/box.rs +++ b/src/libcore/box.rs @@ -1,4 +1,4 @@ -//! Operations on shared box types +//! Operations on managed box types // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; diff --git a/src/libcore/char.rs b/src/libcore/char.rs index 6732e157cb8..aa9a558edc7 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -69,7 +69,7 @@ pure fn is_uppercase(c: char) -> bool { } /** - * Indicates whether a character is whitespace, defined in + * Indicates whether a character is whitespace. Whitespace is defined in * terms of the Unicode General Categories 'Zs', 'Zl', 'Zp' * additional 'Cc'-category control codes in the range [0x09, 0x0d] */ @@ -81,9 +81,9 @@ pure fn is_whitespace(c: char) -> bool { } /** - * Indicates whether a character is alphanumeric, defined - * in terms of the Unicode General Categories 'Nd', - * 'Nl', 'No' and the Derived Core Property 'Alphabetic'. + * Indicates whether a character is alphanumeric. Alphanumericness is + * defined in terms of the Unicode General Categories 'Nd', 'Nl', 'No' + * and the Derived Core Property 'Alphabetic'. */ pure fn is_alphanumeric(c: char) -> bool { return unicode::derived_property::Alphabetic(c) || @@ -107,10 +107,6 @@ pure fn is_digit(c: char) -> bool { /** * Convert a char to the corresponding digit. * - * # Safety note - * - * This function returns none if `c` is not a valid char - * * # Return value * * If `c` is between '0' and '9', the corresponding value