I modified the doc of from_elem, from_fn, I think it returns an owned vector
This commit is contained in:
parent
84e22f2b8e
commit
84e97d5596
1 changed files with 4 additions and 4 deletions
|
|
@ -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] {
|
||||
|
|
@ -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] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue