Reflect new DataSource.File API in example

This commit is contained in:
asteroidb612 2022-03-10 17:10:53 -07:00 committed by GitHub
parent 31c3af5aa8
commit 2b80fbbfd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ In fact, let's combine our library of authors from 3 different `DataSource`s.
```elm
authorsFromFile : DataSource (List Author)
authorsFromFile =
DataSource.File.read "data/authors.json"
DataSource.File.rawFile "data/authors.json"
authorsDecoder
allAuthors : DataSource (List Author)