diff options
| author | Michael Sullivan <sully@msully.net> | 2012-06-25 20:00:46 -0700 | 
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-06-25 20:00:46 -0700 | 
| commit | 329eca6044fdf376a7a89ec7a96dba7a8b884cf7 (patch) | |
| tree | 7008814278a066914b6ba36818388d5212ffda9f /src/libcore/int-template/int.rs | |
| parent | c087aaf56b1109163126fea4c2760f8414ffbe56 (diff) | |
| download | rust-329eca6044fdf376a7a89ec7a96dba7a8b884cf7.tar.gz rust-329eca6044fdf376a7a89ec7a96dba7a8b884cf7.zip | |
Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.
Diffstat (limited to 'src/libcore/int-template/int.rs')
| -rw-r--r-- | src/libcore/int-template/int.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/libcore/int-template/int.rs b/src/libcore/int-template/int.rs index d28333c79e6..2557b1253b7 100644 --- a/src/libcore/int-template/int.rs +++ b/src/libcore/int-template/int.rs @@ -11,7 +11,7 @@ pure fn hash(&&x: int) -> uint { ret x as uint; } #[doc = "Returns `base` raised to the power of `exponent`"] fn pow(base: int, exponent: uint) -> int { - if exponent == 0u { ret 1; } //Not mathemtically true if [base == 0] + if exponent == 0u { ret 1; } //Not mathemtically true if [base == 0]/~ if base == 0 { ret 0; } let mut my_pow = exponent; let mut acc = 1; | 
