summary refs log tree commit diff
path: root/src/libcore/dvec.rs
diff options
context:
space:
mode:
authorJihyun Yu <jihyun@nclab.kaist.ac.kr>2013-03-02 12:57:05 +0900
committerJihyun Yu <jihyun@nclab.kaist.ac.kr>2013-03-02 12:57:05 +0900
commit95bc9ea26df56b29f74583317ab080fdc7b99757 (patch)
tree5bc88308814e2b0013f886efa2deaa7b56c5c8e5 /src/libcore/dvec.rs
parent0fd1b58f236b4fe653d164836e94feebb2972931 (diff)
downloadrust-95bc9ea26df56b29f74583317ab080fdc7b99757.tar.gz
rust-95bc9ea26df56b29f74583317ab080fdc7b99757.zip
Remove REC, change related tests/docs
Diffstat (limited to 'src/libcore/dvec.rs')
-rw-r--r--src/libcore/dvec.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/dvec.rs b/src/libcore/dvec.rs
index 1fef4ad42f1..7197de36404 100644
--- a/src/libcore/dvec.rs
+++ b/src/libcore/dvec.rs
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -62,17 +62,17 @@ pub struct DVec<A> {
 
 /// Creates a new, empty dvec
 pub pure fn DVec<A>() -> DVec<A> {
-    DVec {mut data: ~[]}
+    DVec {data: ~[]}
 }
 
 /// Creates a new dvec with a single element
 pub pure fn from_elem<A>(e: A) -> DVec<A> {
-    DVec {mut data: ~[e]}
+    DVec {data: ~[e]}
 }
 
 /// Creates a new dvec with the contents of a vector
 pub pure fn from_vec<A>(v: ~[A]) -> DVec<A> {
-    DVec {mut data: v}
+    DVec {data: v}
 }
 
 /// Consumes the vector and returns its contents