about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-01 19:54:36 -0700
committerbors <bors@rust-lang.org>2013-05-01 19:54:36 -0700
commita64aa28efed2b8be4bc7878b83978e788f5b1716 (patch)
treec7b521d7231d36a30b109cabe42e11c215c1b14a /src
parentb4bdc3f50040301bdcd372e320044f8fb2efb76f (diff)
parent84e97d5596fdc665036646f715f4ffd030d9031f (diff)
downloadrust-a64aa28efed2b8be4bc7878b83978e788f5b1716.tar.gz
rust-a64aa28efed2b8be4bc7878b83978e788f5b1716.zip
auto merge of #6173 : sammykim/rust/doc-vec, r=yichoi
I think whether vector element is mutable is decided by whether vector reference is mutable.
Diffstat (limited to 'src')
-rw-r--r--src/libcore/vec.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs
index 86767dc5bad..081efe48e1e 100644
--- a/src/libcore/vec.rs
+++ b/src/libcore/vec.rs
@@ -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] {