doc: Clean up primitive short descriptions

This makes the primitive descriptions on the front page read properly
as descriptions of types and not of the associated modules.
This commit is contained in:
Brian Anderson 2015-07-17 16:28:04 -07:00
parent 47265bbf37
commit 44dd247cd5
19 changed files with 20 additions and 20 deletions

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Utilities for slice manipulation
//! A dynamically-sized view into a contiguous sequence, `[T]`.
//!
//! The `slice` module contains useful code to help work with slice values.
//! Slices are a view into a block of memory represented as a pointer and a

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Unicode string manipulation (the `str` type).
//! Unicode string slices
//!
//! Rust's `str` type is one of the core primitive types of the language. `&str`
//! is the borrowed string type. This type of string can only be created from

View File

@ -10,7 +10,7 @@
// FIXME: talk about offset, copy_memory, copy_nonoverlapping_memory
//! Operations on raw pointers, `*const T`, and `*mut T`.
//! Raw, unsafe pointers, `*const T`, and `*mut T`
//!
//! Working with raw pointers in Rust is uncommon,
//! typically limited to a few patterns.

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations on tuples
//! A finite heterogeneous sequence, `(T, U, ..)`
//!
//! To access a single element of a tuple one can use the `.0`
//! field access syntax.

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Character manipulation (`char` type, Unicode Scalar Value)
//! A Unicode scalar value
//!
//! This module provides the `CharExt` trait, as well as its
//! implementation for the primitive `char` type, in order to allow

View File

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! A fixed-size array is denoted `[T; N]` for the element type `T` and
//! the compile time constant size `N`. The size must be zero or positive.
//! A fixed-size array, denoted `[T; N]`, for the element type, `T`, and
//! the non-negative compile time constant size, `N`.
//!
//! Arrays values are created either with an explicit expression that lists
//! each element: `[x, y, z]` or a repeat expression: `[x; N]`. The repeat

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for 32-bits floats (`f32` type)
//! The 32-bit floating point type
#![stable(feature = "rust1", since = "1.0.0")]
#![allow(missing_docs)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for 64-bits floats (`f64` type)
//! The 32-bit floating point type
#![stable(feature = "rust1", since = "1.0.0")]
#![allow(missing_docs)]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for signed 16-bits integers (`i16` type)
//! The 16-bit signed integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "i16")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for signed 32-bits integers (`i32` type)
//! The 32-bit signed integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "i32")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for signed 64-bits integers (`i64` type)
//! The 64-bit signed integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "i64")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for signed 8-bits integers (`i8` type)
//! The 8-bit signed integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "i8")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for pointer-sized signed integers (`isize` type)
//! The pointer-sized signed integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "isize")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for unsigned 16-bits integers (`u16` type)
//! The 16-bit unsigned integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "u16")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for unsigned 32-bits integers (`u32` type)
//! The 32-bit unsigned integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "u32")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for unsigned 64-bits integer (`u64` type)
//! The 64-bit unsigned integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "u64")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for unsigned 8-bits integers (`u8` type)
//! The 8-bit unsigned integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "u8")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations and constants for pointer-sized unsigned integers (`usize` type)
//! The pointer-sized unsigned integer type
#![stable(feature = "rust1", since = "1.0.0")]
#![doc(primitive = "usize")]

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Operations on tuples
//! A finite heterogeneous sequence, `(T, U, ..)`
//!
//! To access the _N_-th element of a tuple one can use `N` itself
//! as a field of the tuple.