diff --git a/chapter2/sample/search/search.go b/chapter2/sample/search/search.go index c3e1988..06b7f8f 100644 --- a/chapter2/sample/search/search.go +++ b/chapter2/sample/search/search.go @@ -8,10 +8,8 @@ import ( // A map of registered matchers for searching. var matchers map[string]Matcher = map[string]Matcher{} -// Register is called to register a matcher for use -// by the program. +// Register is called to register a matcher for use by the program. func Register(feedType string, matcher Matcher) { - // Assign the matcher to the specified key. log.Println("Register", feedType) matchers[feedType] = matcher }