From 84e97d5596fdc665036646f715f4ffd030d9031f Mon Sep 17 00:00:00 2001 From: Sangeun Kim Date: Tue, 30 Apr 2013 18:39:16 +0900 Subject: [PATCH] I modified the doc of from_elem, from_fn, I think it returns an owned vector --- src/libcore/vec.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 86767dc5bad85..081efe48e1eb5 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -137,9 +137,9 @@ pub fn uniq_len(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(n_elts: uint, op: old_iter::InitOp) -> ~[T] { @@ -159,9 +159,9 @@ pub fn from_fn(n_elts: uint, op: old_iter::InitOp) -> ~[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(n_elts: uint, t: T) -> ~[T] {