Skip to content

Commit

Permalink
Use semver-compliant example version
Browse files Browse the repository at this point in the history
Clippy warns if this version isn't semver-compliant.
  • Loading branch information
syvb authored Sep 24, 2022
1 parent a7cdac3 commit 328e227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attributes/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Tuple struct fields are ignored.
Here is an example:

```rust
#[deprecated(since = "5.2", note = "foo was rarely used. Users should instead use bar")]
#[deprecated(since = "5.2.0", note = "foo was rarely used. Users should instead use bar")]
pub fn foo() {}

pub fn bar() {}
Expand Down

0 comments on commit 328e227

Please sign in to comment.