Skip to content

chore: rename main function on main page example#1097

Merged
samoht merged 1 commit intomirage:mainfrom
Unn4m3DD:master
Mar 6, 2025
Merged

chore: rename main function on main page example#1097
samoht merged 1 commit intomirage:mainfrom
Unn4m3DD:master

Conversation

@Unn4m3DD
Copy link
Copy Markdown
Contributor

This is a tiny pr renaming the main function on the first usage example of the lib.
Even though it probably looks like it, this is not a troll hacktoberfest I want my free t-shirt kind of PR.
I just picked up ocaml and this was the first code example I got up and running. I was very confused by the fact that there was this variable body everywhere and couldn't quite figure out what it meant. Then it clicked that there are indeed 2 variables called body each of which has nothing to do with each other.
I believe many others will also start their ocaml journey by making some http requests and it would be great to have this example be more self explanatory.
This is even done later on this same readme under ## Basic server tutorial

@samoht
Copy link
Copy Markdown
Member

samoht commented Mar 6, 2025

Good idea! Thanks for your contribution!

@samoht samoht merged commit ef7364d into mirage:main Mar 6, 2025
samoht added a commit to samoht/opam-repository that referenced this pull request May 28, 2025
CHANGES:

- cohttp-mirage: make client usable again -- this fixes a regression introduced
  by mirage/ocaml-cohttp#1080 (@Firobe, review by @edwintorok, mirage/ocaml-cohttp#1110)
- rename main function on README example (@Unn4m3DD, mirage/ocaml-cohttp#1097)
dkalinichenko-js pushed a commit to dkalinichenko-js/opam-repository that referenced this pull request Jun 10, 2025
CHANGES:

- cohttp-mirage: make client usable again -- this fixes a regression introduced
  by mirage/ocaml-cohttp#1080 (@Firobe, review by @edwintorok, mirage/ocaml-cohttp#1110)
- rename main function on README example (@Unn4m3DD, mirage/ocaml-cohttp#1097)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants