diff options
| author | Roy Frostig <[email protected]> | 2010-08-03 18:06:31 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-08-03 18:06:31 -0700 |
| commit | d5fd81174ebbe9f588e9ee9edbb33c2830df948e (patch) | |
| tree | a58915eeea0813aa653272c1d4074948af1b95f5 /src/lib/util.rs | |
| parent | More stdlib hashmap bits (plus some drive-by extras). (diff) | |
| download | rust-d5fd81174ebbe9f588e9ee9edbb33c2830df948e.tar.xz rust-d5fd81174ebbe9f588e9ee9edbb33c2830df948e.zip | |
Pass parametric types by-alias in various stdlib spots.
Diffstat (limited to 'src/lib/util.rs')
| -rw-r--r-- | src/lib/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util.rs b/src/lib/util.rs index 5d0f4b49..1688c263 100644 --- a/src/lib/util.rs +++ b/src/lib/util.rs @@ -13,7 +13,7 @@ fn option_map[T, U](&operator[T, U] f, &option[T] opt) -> option[U] { } } -fn id[T](T x) -> T { +fn id[T](&T x) -> T { ret x; } |