Fix README typo

This commit is contained in:
Felipe M 2021-03-10 12:07:44 +01:00
parent 1903bfe3e1
commit f23ff3d03e
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 3 additions and 3 deletions

View File

@ -15,18 +15,18 @@ import (
func main() {
// Retrieve manga information
manga, err := mangadex.GetManga(123)
manga, errManga := mangadex.GetManga(123)
if errManga != nil {
log.Println("Error retrieving manga: %s", errManga)
}
// Retrieve a list of chapters
// Retrieve a list of chapters
chaptersRequest := NewGetChaptersParams()
chapters, errChapterList = manga.getChapters(chaptersRequest)
if errChapterList != nil {
log.Println("Error retrieving chapters page %d: %s", chaptersRequest.Page, errChapterList)
}
// Disables chache reads for requests beyond this point
mangadex.DisableCache()