Hacker News new | ask | show | jobs
by FeepingCreature 2013 days ago
If you write a unittest in D underneath a function, it will automatically be included in the generated docs as an example. This is how all the examples in the standard library documentation are created, so you know for a fact that those work.