Skip to content

Commit

Permalink
Update syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Nov 2, 2023
1 parent f10f8fb commit ef25479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import gleam/httpc
import gleam/http.{Get}
import gleam/http/request
import gleam/http/response
import gleam/result
import gleeunit/should
pub fn main() {
Expand All @@ -18,7 +19,7 @@ pub fn main() {
request.to("https://test-api.service.hmrc.gov.uk/hello/world")
// Send the HTTP request to the server
try resp = httpc.send(req)
use resp <- result.try(httpc.send(req))
// We get a response record back
resp.status
Expand Down

0 comments on commit ef25479

Please sign in to comment.