diff options
| author | Graydon Hoare <[email protected]> | 2010-07-05 14:36:39 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-05 14:36:39 -0700 |
| commit | ad61f02d3647b61153caf2925e354076eb6ad3f1 (patch) | |
| tree | 57670b3e96edb88c1bc4e0446b2845580fc1687f /src | |
| parent | Log completion on the many.rs test. (diff) | |
| download | rust-ad61f02d3647b61153caf2925e354076eb6ad3f1.tar.xz rust-ad61f02d3647b61153caf2925e354076eb6ad3f1.zip | |
Rename some stuff in lib/util.rs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/util.rs | 4 |
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)); |