Skip to content

Commit 1a9f41f

Browse files
Refactored map declaration
1 parent a1a6c16 commit 1a9f41f

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 = make(map[string]Matcher)
9+
var matchers map[string]Matcher = map[string]Matcher{}
1010

1111
// Register is called to register a matcher for use
1212
// by the program.

0 commit comments

Comments
 (0)