Browse Source

changing isprint to isgraphic

content-update
MSilva95 4 years ago
parent
commit
28d21e8af8
  1. 2
      go/tests/func/printmemory_test/main.go

2
go/tests/func/printmemory_test/main.go

@ -66,7 +66,7 @@ func printLine(elems [10]int, start int) {
fmt.Println()
c := start
for c < start+16 && c < size {
if unicode.IsPrint(rune(elems[c])) {
if unicode.IsGraphic(rune(elems[c])) {
fmt.Printf("%c", rune(elems[c]))
} else {
fmt.Print(".")

Loading…
Cancel
Save