3 ms·
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 s
by FeepingCreature 6y 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.