Fix compile errors in example
This commit is contained in:
parent
2384439e1a
commit
3a6b2465fe
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue