From f89c6d9be6002dd508d6c47fe067c7bee21bb64a Mon Sep 17 00:00:00 2001 From: Adam Wick Date: Tue, 16 Jan 2018 17:45:03 -0800 Subject: [PATCH] Fix comment around ToASN1. --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d8bc41c..c796bd5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -868,7 +868,10 @@ pub fn der_decode(v: &[u8]) -> Result } /// The set of types that can automatically converted into a sequence -/// of `ASN1Block`s. +/// of `ASN1Block`s. You should probably use to_asn1() but implement +/// to_asn1_class(). The former has a default implementation that passes +/// `ASN1Class::Universal` as the tag to use, which should be good for +/// most people. pub trait ToASN1 { type Error : From;