Skip to content

Commit 02a645c

Browse files
Fixed function name
1 parent 7f8df3c commit 02a645c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎chapter2/sample/search/feed.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Feed struct {
1717
}
1818

1919
// RetrieveFeed reads and unmarshals the feed data file.
20-
func RetrieveFeed() ([]*Feed, error) {
20+
func RetrieveFeeds() ([]*Feed, error) {
2121
// Open the file.
2222
file, err := os.Open(dataFile)
2323
if err != nil {

‎chapter2/sample/search/search.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ func Register(feedType string, matcher Matcher) {
2020

2121
// Run performs the search logic.
2222
func Run(searchTerm string) {
23-
// RetrieveFeed returns the list of feeds to search through.
24-
feeds, err := RetrieveFeed()
23+
// Retrieve the list of feeds to search through.
24+
feeds, err := RetrieveFeeds()
2525
if err != nil {
2626
log.Fatal(err)
2727
}

0 commit comments

Comments
 (0)