Skip to content

Commit

Permalink
I modified the doc of from_elem, from_fn, I think it returns an owned…
Browse files Browse the repository at this point in the history
… vector
  • Loading branch information
sammykim committed Apr 30, 2013
1 parent 84e22f2 commit 84e97d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/vec.rs
Expand Up @@ -137,9 +137,9 @@ pub fn uniq_len<T>(v: &const ~[T]) -> uint {
}

/**
* Creates and initializes an immutable vector.
* Creates and initializes an owned vector.
*
* Creates an immutable vector of size `n_elts` and initializes the elements
* Creates an owned vector of size `n_elts` and initializes the elements
* to the value returned by the function `op`.
*/
pub fn from_fn<T>(n_elts: uint, op: old_iter::InitOp<T>) -> ~[T] {
Expand All @@ -159,9 +159,9 @@ pub fn from_fn<T>(n_elts: uint, op: old_iter::InitOp<T>) -> ~[T] {
}

/**
* Creates and initializes an immutable vector.
* Creates and initializes an owned vector.
*
* Creates an immutable vector of size `n_elts` and initializes the elements
* Creates an owned vector of size `n_elts` and initializes the elements
* to the value `t`.
*/
pub fn from_elem<T:Copy>(n_elts: uint, t: T) -> ~[T] {
Expand Down

5 comments on commit 84e97d5

@bors
Copy link
Contributor

@bors bors commented on 84e97d5 May 2, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from yichoi
at sammykim@84e97d5

@bors
Copy link
Contributor

@bors bors commented on 84e97d5 May 2, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging sammykim/rust/doc-vec = 84e97d5 into auto

@bors
Copy link
Contributor

@bors bors commented on 84e97d5 May 2, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sammykim/rust/doc-vec = 84e97d5 merged ok, testing candidate = a64aa28

@bors
Copy link
Contributor

@bors bors commented on 84e97d5 May 2, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 84e97d5 May 2, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = a64aa28

Please sign in to comment.