about summary refs log tree commit diff
path: root/src/lib/_vec.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2010-11-03 17:10:37 -0700
committerPatrick Walton <pcwalton@mimiga.net>2010-11-05 11:18:40 -0700
commitadb1754e4dcbf61abb93ac7604aed4e8bca080a8 (patch)
tree037acbf63e189a999291e04a9a9db4e777e9c003 /src/lib/_vec.rs
parente399926776e0d1ef7ebe6d9f0d7ef6d066eabfa0 (diff)
downloadrust-adb1754e4dcbf61abb93ac7604aed4e8bca080a8.tar.gz
rust-adb1754e4dcbf61abb93ac7604aed4e8bca080a8.zip
Move the option type to its own module
Diffstat (limited to 'src/lib/_vec.rs')
-rw-r--r--src/lib/_vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/_vec.rs b/src/lib/_vec.rs
index c67061c50d4..c2ca95fcb67 100644
--- a/src/lib/_vec.rs
+++ b/src/lib/_vec.rs
@@ -1,5 +1,5 @@
 import vbuf = rustrt.vbuf;
-import op = util.operator;
+import std.option;
 
 native "rust" mod rustrt {
     type vbuf;
@@ -129,7 +129,7 @@ fn grow[T](&mutable vec[T] v, int n, &T initval) {
     }
 }
 
-fn map[T, U](&op[T,U] f, &vec[T] v) -> vec[U] {
+fn map[T, U](&option.operator[T,U] f, &vec[T] v) -> vec[U] {
     let vec[U] u = alloc[U](len[T](v));
     for (T ve in v) {
         u += vec(f(ve));