Skip to content

Commit 8cab993

Browse files
Fixing Array to use ... notation
1 parent ae92f5c commit 8cab993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chapter4/sample/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
const dataFile = "data/latest_obs.txt"
1212

1313
// The list of field names in their file position.
14-
var fieldNames = [22]string{
14+
var fieldNames = [...]string{
1515
"#STN", "LAT", "LON", "YYYY", "MM", "DD", "hh",
1616
"mm", "WDIR", "WSPD", "GST", "WVHT", "DPD", "APD",
1717
"MWD", "PRES", "PTDY", "ATMP", "WTMP", "DEWP",

0 commit comments

Comments
 (0)