1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-13 17:22:27 +08:00

doc: format code in doc file

This commit is contained in:
dudaodong
2023-06-15 10:13:27 +08:00
parent fffabd0ffa
commit 957568ed5c
13 changed files with 472 additions and 473 deletions

View File

@@ -789,7 +789,6 @@ func main() {
}
```
### <span id="Cos">Cos</span>
<p>计算弧度的余弦值</p>
@@ -832,7 +831,6 @@ func main() {
}
```
### <span id="Sin">Sin</span>
<p>计算弧度的正弦值</p>
@@ -897,17 +895,17 @@ import (
func main() {
result1 := mathutil.Log(8, 2)
result2 := mathutil.TruncRound(mathutil.Log(5, 2), 2)
result3 := mathutil.TruncRound(mathutil.Log(27, 3), 0)
result2 := mathutil.TruncRound(mathutil.Log(5, 2), 2)
result3 := mathutil.TruncRound(mathutil.Log(27, 3), 0)
fmt.Println(result1)
fmt.Println(result2)
fmt.Println(result3)
fmt.Println(result1)
fmt.Println(result2)
fmt.Println(result3)
// Output:
// 3
// 2.32
// 3
// Output:
// 3
// 2.32
// 3
}
```
@@ -942,4 +940,4 @@ func main() {
// 3
// 1.1
}
```
```