Skip to content

Commit

Permalink
chore: rename main function on main page example
Browse files Browse the repository at this point in the history
  • Loading branch information
Unn4m3DD authored and Andre Patacas committed Nov 30, 2024
1 parent 716d6e6 commit 11a7bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ open Lwt
open Cohttp
open Cohttp_lwt_unix
let body =
let main =
Client.get (Uri.of_string "https://www.reddit.com/") >>= fun (resp, body) ->
let code = resp |> Response.status |> Code.code_of_status in
Printf.printf "Response code: %d\n" code;
Expand All @@ -89,7 +89,7 @@ let body =
body
let () =
let body = Lwt_main.run body in
let body = Lwt_main.run main in
print_endline ("Received body\n" ^ body)
```

Expand Down

0 comments on commit 11a7bfa

Please sign in to comment.