Hacker News new | ask | show | jobs
by eevilspock 1253 days ago
I'm not sure if you're saying that rust stdlib docs do this but documentation where all the examples are themselves runnable as tests and included in the CI test suite solves so many problems.
1 comments

Not just the stdlib, the documentation tool itself supports this, so it's the case for any Rust package that writes documentation.