Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4f6fe19

Browse files
merge: resolve example mistake (#919)
1 parent 5198af8 commit 4f6fe19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Maths/Pow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @param {number} exponent
66
* @returns {number}
77
* @example - powLinear(2, 2) => 4 --> 2 * 2
8-
* @example - powLinear(3, 3) => 27 --> 3 * 3
8+
* @example - powLinear(3, 3) => 27 --> 3 * 3 * 3
99
*/
1010
const powLinear = (base, exponent) => {
1111
if (exponent < 0) {
@@ -29,7 +29,7 @@ const powLinear = (base, exponent) => {
2929
* @param {number} exponent
3030
* @returns {number}
3131
* @example - powFaster(2, 2) => 4 --> 2 * 2
32-
* @example - powFaster(3, 3) => 27 --> 3 * 3
32+
* @example - powFaster(3, 3) => 27 --> 3 * 3 * 3
3333
*/
3434
const powFaster = (base, exponent) => {
3535
if (exponent < 2) { // explanation below - 1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /