about summary refs log tree commit diff
path: root/src/libcore/int-template/int.rs
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-06-25 20:00:46 -0700
committerMichael Sullivan <sully@msully.net>2012-06-25 20:00:46 -0700
commit329eca6044fdf376a7a89ec7a96dba7a8b884cf7 (patch)
tree7008814278a066914b6ba36818388d5212ffda9f /src/libcore/int-template/int.rs
parentc087aaf56b1109163126fea4c2760f8414ffbe56 (diff)
downloadrust-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.rs2
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;