Browse Source

Fix mistake

pull/533/head
5 years ago committed by xpetit
parent
commit
f72f1efb05
  1. 2
      go/tests/isalpha_test/main.go
  2. 1
      go/tests/printnbrinorder_test/main.go

2
go/tests/isalpha_test/main.go

@ -10,7 +10,7 @@ import (
func isAlpha(s string) bool {
for _, r := range s {
if !unicode.Is(unicode.Hex_Digit, r) {
if !unicode.IsDigit(r) && !unicode.Is(unicode.Latin, r) {
return false
}
}

1
go/tests/printnbrinorder_test/main.go

@ -31,7 +31,6 @@ func printNbrInOrder(n int) {
for _, i := range digits {
fmt.Printf("%c", rune(i)+'0')
}
fmt.Println()
}
func main() {

Loading…
Cancel
Save