Skip to content

Commit aa5d779

Browse files
committed
auto merge of #11134 : lucab/rust/lucab/libstd-doc, r=cmr
Uniform the short title of modules provided by libstd, in order to make their roles more explicit when glancing at the index.
2 parents afe8f6e + a9a7a42 commit aa5d779

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+50
-42
lines changed

Diff for: src/libstd/any.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
//! Traits for dynamic typing of any type (through runtime reflection)
12+
//!
1113
//! This module implements the `Any` trait, which enables dynamic typing
1214
//! of any type, through runtime reflection.
1315
//!

Diff for: src/libstd/ascii.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations on ASCII strings and characters.
11+
//! Operations on ASCII strings and characters
1212
1313
use to_str::{ToStr,IntoStr};
1414
use str;

Diff for: src/libstd/at_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Managed vectors
11+
//! Operations on managed vectors (`@[T]` type)
1212
1313
use clone::Clone;
1414
use container::Container;

Diff for: src/libstd/bool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! The `bool` module contains useful code to help work with boolean values.
11+
//! Operations on boolean values (`bool` type)
1212
//!
1313
//! A quick summary:
1414
//!

Diff for: src/libstd/char.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Utilities for manipulating the char type
11+
//! Unicode characters manipulation (`char` type)
1212
1313
use cast::transmute;
1414
use option::{None, Option, Some};

Diff for: src/libstd/clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/*! The Clone trait for types that cannot be "implicitly copied"
11+
/*! The `Clone` trait for types that cannot be 'implicitly copied'
1212
1313
In Rust, some simple types are "implicitly copyable" and when you
1414
assign them or pass them as arguments, the receiver will get a copy,

Diff for: src/libstd/comm/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Rust Communication Primitives
11+
//! Communication primitives for concurrent tasks (`Chan` and `Port` types)
1212
//!
1313
//! Rust makes it very difficult to share data among tasks to prevent race
1414
//! conditions and to improve parallelism, but there is often a need for

Diff for: src/libstd/container.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Container traits
11+
//! Traits for generic containers (including `Map` and `Set`)
1212
1313
use option::Option;
1414

Diff for: src/libstd/default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! The Default trait
11+
//! The `Default` trait for types which may have meaningful default values
1212
1313
/// A trait that types which have a useful default value should implement.
1414
pub trait Default {

Diff for: src/libstd/either.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! A type that represents one of two alternatives
11+
//! Representing values with two possibilities (`Either` type)
1212
1313
#[allow(missing_doc)];
1414

Diff for: src/libstd/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/*!
1212
13-
The Formatting Module
13+
Utilities for formatting and printing strings
1414
1515
This module contains the runtime support for the `format!` syntax extension.
1616
This macro is implemented in the compiler to emit calls to this module in order

Diff for: src/libstd/from_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! The trait for types that can be created from strings
11+
//! The `FromStr` trait for types that can be created from strings
1212
1313
use option::Option;
1414

Diff for: src/libstd/hashmap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! An unordered map and set type implemented as hash tables
11+
//! Unordered containers, implemented as hash-tables (`HashSet` and `HashMap` types)
1212
//!
1313
//! The tables use a keyed hash with new random keys generated for each container, so the ordering
1414
//! of a set of keys in a hash table is randomized.

Diff for: src/libstd/kinds.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
/*!
12-
The kind traits
12+
Primitive traits representing basic 'kinds' of types
1313
1414
Rust types can be classified in various useful ways according to
1515
intrinsic properties of the type. These classifications, often called

Diff for: src/libstd/logging.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/*!
1212
13-
Logging
13+
Utilities for program-wide and customizable logging
1414
1515
This module is used by the compiler when emitting output for the logging family
1616
of macros. The methods of this module shouldn't necessarily be used directly,

Diff for: src/libstd/num/cmath.rs

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#[allow(non_uppercase_statics)];
1313
#[allow(dead_code)];
1414

15+
//! Bindings for the C math library (for basic mathematic functions)
16+
1517
// function names are almost identical to C's libmath, a few have been
1618
// renamed, grep for "rename:"
1719

Diff for: src/libstd/num/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `f32`
11+
//! Operations and constants for 32-bits floats (`f32` type)
1212
#[allow(missing_doc)];
1313

1414
use prelude::*;

Diff for: src/libstd/num/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `f64`
11+
//! Operations and constants for 64-bits floats (`f64` type)
1212
1313
#[allow(missing_doc)];
1414

Diff for: src/libstd/num/i16.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `i16`
11+
//! Operations and constants for signed 16-bits integers (`i16` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/i32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `i32`
11+
//! Operations and constants for signed 32-bits integers (`i32` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/i64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `i64`
11+
//! Operations and constants for signed 64-bits integers (`i64` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/i8.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `i8`
11+
//! Operations and constants for signed 8-bits integers (`i8` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/int.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `int`
11+
//! Operations and constants for architecture-sized signed integers (`int` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Numeric traits and functions for generic mathematics.
11+
//! Numeric traits and functions for generic mathematics
1212
//!
1313
//! These are implemented for the primitive numeric types in `std::{u8, u16,
1414
//! u32, u64, uint, i8, i16, i32, i64, int, f32, f64, float}`.

Diff for: src/libstd/num/u16.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `u16`
11+
//! Operations and constants for unsigned 16-bits integers (`u16` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/u32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `u32`
11+
//! Operations and constants for unsigned 32-bits integers (`u32` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/u64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `u64`
11+
//! Operations and constants for unsigned 64-bits integer (`u64` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/u8.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `u8`
11+
//! Operations and constants for unsigned 8-bits integers (`u8` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/num/uint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for `uint`
11+
//! Operations and constants for architecture-sized unsigned integers (`uint` type)
1212
1313
#[allow(non_uppercase_statics)];
1414

Diff for: src/libstd/ops.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
/*!
1515
*
16-
* Traits for the built-in operators. Implementing these traits allows you to get
17-
* an effect similar to overloading operators.
16+
* Traits representing built-in operators, useful for overloading
17+
*
18+
* Implementing these traits allows you to get an effect similar to
19+
* overloading operators.
1820
*
1921
* The values for the right hand side of an operator are automatically
2022
* borrowed, so `a + b` is sugar for `a.add(&b)`.

Diff for: src/libstd/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations on the ubiquitous `Option` type.
11+
//! Optionally nullable values (`Option` type)
1212
//!
1313
//! Type `Option` represents an optional value.
1414
//!

Diff for: src/libstd/prelude.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/*!
1212
13+
The standard module imported by default into all Rust modules
14+
1315
Many programming languages have a 'prelude': a particular subset of the
1416
libraries that come with the language. Every program imports the prelude by
1517
default.

Diff for: src/libstd/rand/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
/*!
12-
Random number generation.
12+
Utilities for random number generation
1313
1414
The key functions are `random()` and `Rng::gen()`. These are polymorphic
1515
and so can be used to generate any type that implements `Rand`. Type inference

Diff for: src/libstd/rc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/*! Task-local reference counted boxes
11+
/*! Task-local reference-counted boxes (`Rc` type)
1212
1313
The `Rc` type provides shared ownership of an immutable value. Destruction is deterministic, and
1414
will occur as soon as the last owner is gone. It is marked as non-sendable because it avoids the

Diff for: src/libstd/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! A type representing either success or failure
11+
//! Signaling success or failure states (`Result` type)
1212
1313
use clone::Clone;
1414
use cmp::Eq;

Diff for: src/libstd/rt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/*! The Rust Runtime, including the task scheduler and I/O
11+
/*! Runtime services, including the task scheduler and I/O dispatcher
1212
1313
The `rt` module provides the private runtime infrastructure necessary
1414
to support core language features like the exchange and local heap,

Diff for: src/libstd/run.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Process spawning.
11+
//! Utilities for spawning and managing processes
1212
1313
#[allow(missing_doc)];
1414

Diff for: src/libstd/send_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! `SendStr` definition and trait implementations
11+
//! The `SendStr` trait for optionally static strings
1212
1313
use clone::{Clone, DeepClone};
1414
use cmp::{Eq, TotalEq, Ord, TotalOrd, Equiv};

Diff for: src/libstd/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/*!
1212
13-
String manipulation
13+
Unicode string manipulation (`str` type)
1414
1515
# Basic Usage
1616

Diff for: src/libstd/task.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
/*!
12-
* Task management.
12+
* Utilities for managing and scheduling tasks
1313
*
1414
* An executing Rust program consists of a tree of tasks, each with their own
1515
* stack, and sole ownership of their allocated heap data. Tasks communicate

Diff for: src/libstd/to_bytes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/*!
1212
13-
The `ToBytes` and `IterBytes` traits
13+
The `ToBytes` and `IterBytes` traits for converting to raw bytes
1414
1515
*/
1616

Diff for: src/libstd/trie.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! An ordered map and set for integer keys implemented as a radix trie
11+
//! Ordered containers with integer keys, implemented as radix tries (`TrieSet` and `TrieMap` types)
1212
1313
use prelude::*;
1414
use uint;

Diff for: src/libstd/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Miscellaneous helpers for common patterns.
11+
//! Miscellaneous helpers for common patterns
1212
1313
use cast;
1414
use ptr;

Diff for: src/libstd/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/*!
1212
13-
Vector manipulation
13+
Utilities for vector manipulation
1414
1515
The `vec` module contains useful code to help work with vector values.
1616
Vectors are Rust's list type. Vectors contain zero or more values of

0 commit comments

Comments
 (0)