]> git.lizzy.rs Git - rust.git/commit
Improve std::num::pow implementation
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>
Sun, 19 Jan 2014 13:39:05 +0000 (00:39 +1100)
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>
Mon, 20 Jan 2014 07:09:46 +0000 (18:09 +1100)
commit509283d149bb81cad728b2c1b81f7ab8ceb206e1
tree07b91a333c35549a363458ca5e4643313ca23dde
parentcf56624a4ad7703c8f3fc327b8c385da0a803ea5
Improve std::num::pow implementation

The implementation has been made more succinct and no longer requires Clone. The coverage of the associated unit test has also been increased to check more combinations of bases, exponents, and expected results.
src/libstd/num/mod.rs