Fix README typo
This commit is contained in:
parent
1903bfe3e1
commit
f23ff3d03e
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue