RustRover
 
Get RustRover

Doctests

Last modified: 26 May 2024

The examples you provide in documentation can be turned into tests and included in test runs. The practice is referred to as documentation testing. It helps keep documentation up to date with your code. You can find out more about doctests in the rustdoc book.