Skip to content

Commit

Permalink
der_derive: fix doc typo and use a valid tag number (#1184)
Browse files Browse the repository at this point in the history
Add the missing close-parenthesis. Also change the number in the
example, because "42" isn't a valid tag, and will result in a vague
compile-time error if the reader pastes this example into their code.
  • Loading branch information
eric-seppanen authored Aug 5, 2023
1 parent 345b138 commit 5171277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion der/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
//! This attribute can be added to associate a particular `CONTEXT-SPECIFIC`
//! tag number with a given enum variant or struct field.
//!
//! The value must be quoted and contain a number, e.g. `#[asn1(context_specific = "42"]`.
//! The value must be quoted and contain a number, e.g. `#[asn1(context_specific = "29")]`.
//!
//! ### `#[asn1(default = "...")]` attribute: `DEFAULT` support
//!
Expand Down

0 comments on commit 5171277

Please sign in to comment.