Write documentation that prioritizes user understanding over technical precision. Avoid unclear phrases, overly technical explanations, and unhelpful references. When in doubt, choose clarity over brevity, especially for user-facing documentation that may be someone's first encounter with a feature.
Write documentation that prioritizes user understanding over technical precision. Avoid unclear phrases, overly technical explanations, and unhelpful references. When in doubt, choose clarity over brevity, especially for user-facing documentation that may be someone’s first encounter with a feature.
Key principles:
Example of improvement:
// Before: Technical and unclear
/// Template which, upon being forced (`extract()`ed), will evaluate its
/// condition and select between a template for the true case and a template
/// for the false case (which will yield nothing if it is [`None`]).
// After: Clear and user-focused
/// Template which selects output based on a boolean condition.
This approach ensures documentation serves its primary purpose: helping users understand and effectively use the code.
Enter the URL of a public GitHub repository