From 51712775059dac625a01d0ad8052632d53b09e17 Mon Sep 17 00:00:00 2001 From: Eric Seppanen <109770420+eric-seppanen@users.noreply.github.com> Date: Sat, 5 Aug 2023 06:03:37 -0700 Subject: [PATCH] der_derive: fix doc typo and use a valid tag number (#1184) 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. --- der/derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/der/derive/src/lib.rs b/der/derive/src/lib.rs index f33018274..b46191b7f 100644 --- a/der/derive/src/lib.rs +++ b/der/derive/src/lib.rs @@ -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 //!