diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-03-02 07:12:53 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-03-02 07:12:53 -0800 |
| commit | 5515fd5c8cf65a8eebd43ddb0de6ff920a509ece (patch) | |
| tree | 4e3d85a43f684fd9d3b2e80a6a9178f90e63d7ce /src/libcore/dvec.rs | |
| parent | aa3505d8ff043f0c1da62de4f517eed6defb6187 (diff) | |
| parent | 2304fe6208404ce952aaa37e7634db570ff71f6c (diff) | |
| download | rust-5515fd5c8cf65a8eebd43ddb0de6ff920a509ece.tar.gz rust-5515fd5c8cf65a8eebd43ddb0de6ff920a509ece.zip | |
Merge remote-tracking branch 'remotes/origin/incoming' into incoming
Diffstat (limited to 'src/libcore/dvec.rs')
| -rw-r--r-- | src/libcore/dvec.rs | 8 |
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 |
