env_logger icon indicating copy to clipboard operation
env_logger copied to clipboard

Update example code to run inside `main`

Open keoghpe opened this issue 1 year ago • 1 comments

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 ❤️

keoghpe avatar Jul 27 '24 17:07 keoghpe

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.

epage avatar Jul 27 '24 21:07 epage