Skip to content

Commit

Permalink
Update Documentation/DOC-GUIDELINES.md
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos López <[email protected]>
  • Loading branch information
joergroedel and 00xc authored Nov 20, 2023
1 parent 9067a9d commit 78153c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Documentation/DOC-GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ guidelines for documenting code effectively:
`//!` and `#[doc = ""]` for documenting fields or expressions.

```rust
/// This function does A, takes parameter of type `m`
/// It returns B, keep in mind C
fn main(a: m) {
/// This function does A, takes parameter of type [`M`].
/// It returns [`B`], keep in mind C
fn main(a: M) -> B {
// Some code here
}

```

- Documenting trait implementations is optional since the generated
Expand Down

0 comments on commit 78153c0

Please sign in to comment.