Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Url.from_identifier result return type #1238

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

panglesd
Copy link
Collaborator

@panglesd panglesd commented Nov 7, 2024

I often have to look at the implementation to understand why the return type is result, and if I can assert that it will return Ok...

This does not fix the API but helps future me and others when using this function.

Extracted from #1220.

@panglesd panglesd added the no changelog This pull request does not need a changelog entry label Nov 7, 2024
src/document/url.mli Outdated Show resolved Hide resolved
Copy link
Collaborator

@gpetiot gpetiot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jonludlam
Copy link
Member

Thanks!

@jonludlam jonludlam merged commit 19b91e7 into ocaml:master Nov 11, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This pull request does not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants