Closed llogiq closed 3 years ago
Good idea! I'd be keen for that, as long as new contributors are made aware of it.
I like it. It also may nudge us a little bit to make complete examples, which I'm in favor for.
We can add a small sentence to the README. Also using Travis to check PRs will make it pretty obvious.
We're using mdbook
now to build the book and have CI running on PRs and pushes to master, so I'm closing this as this should catch these cases.
I have a local branch here that does this. Obviously some examples are not meant to run (e.g. partial copies from
std
), those can be marked withignore
.Otherwise examples should run if it doesn't make them unreadable. I consider adding one or two lines of
use
declarations acceptable.Thoughts?