aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util.rs b/src/lib/util.rs
index e0e52c8f..af031d7d 100644
--- a/src/lib/util.rs
+++ b/src/lib/util.rs
@@ -1,8 +1,8 @@
type option[T] = tag(none(), some(T));
-type map[T, U] = fn(&T) -> U;
+type operator[T, U] = fn(&T) -> U;
-fn option_map[T, U](map[T, U] f, &option[T] opt) -> option[U] {
+fn option_map[T, U](&operator[T, U] f, &option[T] opt) -> option[U] {
alt (opt) {
case (some[T](x)) {
ret some[U](f[T, U](x));