auto merge of #5553 : pnkfelix/rust/doc-fixes-for-0.6-incoming, r=sanxiyn

This commit is contained in:
bors 2013-03-26 08:58:20 -07:00
commit de7d558944
4 changed files with 38 additions and 7 deletions

View file

@ -284,7 +284,8 @@ pub fn build_sized_opt<A,B: Buildable<A>>(size: Option<uint>,
// Functions that combine iteration and building
/// Applies a function to each element of an iterable and returns the results.
/// Applies a function to each element of an iterable and returns the results
/// in a sequence built via `BU`. See also `map_to_vec`.
#[inline(always)]
pub fn map<T,IT: BaseIter<T>,U,BU: Buildable<U>>(v: &IT, f: &fn(&T) -> U)
-> BU {

View file

@ -172,12 +172,12 @@ pub fn with_capacity<T>(capacity: uint) -> ~[T] {
/**
* Builds a vector by calling a provided function with an argument
* function that pushes an element to the back of a vector.
* This version takes an initial size for the vector.
* This version takes an initial capacity for the vector.
*
* # Arguments
*
* * size - An initial size of the vector to reserve
* * builder - A function that will construct the vector. It recieves
* * builder - A function that will construct the vector. It receives
* as an argument a function that will push an element
* onto the vector being constructed.
*/
@ -194,7 +194,7 @@ pub fn build_sized<A>(size: uint, builder: &fn(push: &fn(v: A))) -> ~[A] {
*
* # Arguments
*
* * builder - A function that will construct the vector. It recieves
* * builder - A function that will construct the vector. It receives
* as an argument a function that will push an element
* onto the vector being constructed.
*/

View file

@ -32,8 +32,8 @@ lib/ - bindings to LLVM
The files concerned purely with syntax -- that is, the AST, parser,
pretty-printer, lexer, macro expander, and utilities for traversing
ASTs -- are in a separate crate called "syntax", whose files are in
./../libsyntax if the parent directory of front/, middle/, back/, and
so on is . .
./../libsyntax, where . is the current directory (that is, the parent
directory of front/, middle/, back/, and so on).
The entry-point for the compiler is main() in driver/rustc.rs, and
this file sequences the various parts together.