Skip to content

Commit fa08be3

Browse files
committed
docs(stdlib): fix math
1 parent e16a19f commit fa08be3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/stdlib/math.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- `Math.LN10`:10 的自然对数。
1212
- `Math.LOG2E`:以 2 为底的`e`的对数。
1313
- `Math.LOG10E`:以 10 为底的`e`的对数。
14-
- `Math.PI`:常数 Pi
14+
- `Math.PI`:常数`π`
1515
- `Math.SQRT1_2`:0.5 的平方根。
1616
- `Math.SQRT2`:2 的平方根。
1717

@@ -40,7 +40,7 @@ Math.SQRT2 // 1.4142135623730951
4040
- `Math.pow()`:指数运算
4141
- `Math.sqrt()`:平方根
4242
- `Math.log()`:自然对数
43-
- `Math.exp()`e的指数
43+
- `Math.exp()``e`的指数
4444
- `Math.round()`:四舍五入
4545
- `Math.random()`:随机数
4646

@@ -208,7 +208,7 @@ function random_str(length) {
208208
ALPHABET += 'abcdefghijklmnopqrstuvwxyz';
209209
ALPHABET += '0123456789-_';
210210
var str = '';
211-
for (var i=0; i < length; ++i) {
211+
for (var i = 0; i < length; ++i) {
212212
var rand = Math.floor(Math.random() * ALPHABET.length);
213213
str += ALPHABET.substring(rand, rand + 1);
214214
}

0 commit comments

Comments
 (0)