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

Update example code to run inside main #328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

keoghpe
Copy link

@keoghpe keoghpe commented Jul 27, 2024

Small docs change - I'm new to this crate and found the current docs page confusing as it calls init outside a main function. Hopefully this makes it clearer!

Thanks for creating a cool crate ❤️

@epage
Copy link
Contributor

epage commented Jul 27, 2024

I'm mixed on this. This makes the intent even more explicit. On the other hand, its not very idiomatic these days to have main in doc tests.

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