Skip to content

Commit 0a31aaf

Browse files
Using make because it is flow better for the book.
1 parent 9c82730 commit 0a31aaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chapter2/sample/search/search.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
// A map of registered matchers for searching.
9-
var matchers map[string]Matcher = map[string]Matcher{}
9+
var matchers map[string]Matcher = make(map[string]Matcher)
1010

1111
// Run performs the search logic.
1212
func Run(searchTerm string) {

0 commit comments

Comments
 (0)