Skip to content

Commit 10e8ae8

Browse files
committed
Merge pull request #4597 from Dretch/atvec-constructors
Oops - add the missing pubs!
2 parents d77f8d5 + ba2a3e8 commit 10e8ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/at_vec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub pure fn from_elem<T: Copy>(n_elts: uint, t: T) -> @[T] {
154154
* Creates and initializes an immutable managed vector by moving all the
155155
* elements from an owned vector.
156156
*/
157-
fn from_owned<T>(v: ~[T]) -> @[T] {
157+
pub fn from_owned<T>(v: ~[T]) -> @[T] {
158158
let mut av = @[];
159159
unsafe {
160160
raw::reserve(&mut av, v.len());
@@ -169,7 +169,7 @@ fn from_owned<T>(v: ~[T]) -> @[T] {
169169
* Creates and initializes an immutable managed vector by copying all the
170170
* elements of a slice.
171171
*/
172-
fn from_slice<T:Copy>(v: &[T]) -> @[T] {
172+
pub fn from_slice<T:Copy>(v: &[T]) -> @[T] {
173173
from_fn(v.len(), |i| v[i])
174174
}
175175

0 commit comments

Comments
 (0)