Skip to content

Commit a550d03

Browse files
Updated comments.
1 parent bf21ed0 commit a550d03

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

chapter2/sample/search/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package search
22

3-
// defaultMatcher implements the defaut matcher.
3+
// defaultMatcher implements the default matcher.
44
type defaultMatcher struct{}
55

66
// init registeres the default matcher with the program.

chapter2/sample/search/match.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ type Matcher interface {
1717
Search(feed *Feed, searchTerm string) ([]*Result, error)
1818
}
1919

20-
// Match is launched as a goroutine for each indidivudal feed to perform
21-
// the specific search logic for the feed type.
20+
// Match is launched as a goroutine for each indidivudal feed to run
21+
// searches concurrently.
2222
func Match(matcher Matcher, feed *Feed, searchTerm string, results chan<- *Result) {
23-
// Perform the search agains the specified matcher.
23+
// Perform the search against the specified matcher.
2424
searchResults, err := matcher.Search(feed, searchTerm)
2525
if err != nil {
2626
log.Println(err)

0 commit comments

Comments
 (0)