fix: Use go fmt

Lint test.
This commit is contained in:
Yuki 2025-06-14 17:20:47 +08:00
parent 8af8fe0979
commit 1bacd716c7
Signed by: yuki
GPG Key ID: 0E266240CCAD7A90
2 changed files with 6 additions and 6 deletions

View File

@ -2,12 +2,12 @@ package num
func IsPrime(n int) bool {
if n <= 1 {
return false;
return false
}
for i := 2; i < n; i++ {
if n % i == 0 {
return false;
if n%i == 0 {
return false
}
}
return true;
return true
}

View File

@ -3,8 +3,8 @@ package num
import "testing"
type checklist struct {
n int;
ret bool;
n int
ret bool
}
func TestNum(t *testing.T) {