Skip to content

Commit 9f63ad5

Browse files
Saving Changes
1 parent 73618b4 commit 9f63ad5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/chapter2/search/main.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ func main() {
3030
// Create the right type of matcher for this search.
3131
switch site.Type {
3232
case "rss":
33-
var search *rss.Search
34-
matcher = search
33+
matcher = new(rss.Search)
3534

3635
default:
3736
log.Fatalln("Invalid Type")

0 commit comments

Comments
 (0)