Skip to content

Commit 765cce7

Browse files
Use fmt package for display message.
1 parent eb200cb commit 765cce7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

chapter9/listing05/listing05.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// matrix in different ways.
33
package listing05
44

5+
import "fmt"
6+
57
const rows = 64
68

79
// Set the size of each row to 64k
@@ -22,7 +24,7 @@ func init() {
2224
}
2325
}
2426
}
25-
println(ctr, "Elements set out of", cols*rows)
27+
fmt.Println(ctr, "Elements set out of", cols*rows)
2628
}
2729

2830
// rowTraverse traverses the matrix linearly by each column for each row.

0 commit comments

Comments
 (0)