diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-14 20:03:31 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-08-14 20:03:31 -0700 |
| commit | ccd36439f70814073c567bb22fdbcaafcf970b16 (patch) | |
| tree | 6fb5ae755f4dafa8b9c7ee256d15008d376baf69 /src/libcore/uint-template.rs | |
| parent | f78c90653535128b5a7c08d4850d6ef202beba40 (diff) | |
Make Num::from_int a static method
Diffstat (limited to 'src/libcore/uint-template.rs')
| -rw-r--r-- | src/libcore/uint-template.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index 162b0d39838..0fc35156f3a 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -77,7 +77,7 @@ impl T: num::Num { pure fn neg() -> T { return -self; } pure fn to_int() -> int { return self as int; } - pure fn from_int(n: int) -> T { return n as T; } + static pure fn from_int(n: int) -> T { return n as T; } } impl T: iter::times { |
