diff --git a/README.md b/README.md index 25a2bcc..e46f986 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ of the underlying functionality. ```elm import Http -import Json.Decoder as Json exposing ((:=)) +import Json.Decode as Json exposing ((:=)) import Task exposing (..) -lookupZipCode : String -> Promise Http.Error (List String) +lookupZipCode : String -> Task Http.Error (List String) lookupZipCode query = Http.get places ("http://api.zippopotam.us/us/" ++ query) @@ -27,4 +27,4 @@ places = ("state" := Json.string) in "places" := Json.list place -``` \ No newline at end of file +```