Skip to content

Commit bcbf0ad

Browse files
committed
Added shorter intro paragraphs to doc comments for clippy (#11492)
1 parent 95437ec commit bcbf0ad

File tree

1 file changed

+5
-0
lines changed
  • src/rust/cryptography-x509-verification/src

1 file changed

+5
-0
lines changed

src/rust/cryptography-x509-verification/src/types.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ use asn1::IA5String;
1010
// RFC 2822 3.2.4
1111
static ATEXT_CHARS: &str = "!#$%&'*+-/=?^_`{|}~";
1212

13+
/// Represents a DNS name can be used in X.509 name matching.
14+
///
1315
/// A `DNSName` is an `asn1::IA5String` with additional invariant preservations
1416
/// per [RFC 5280 4.2.1.6], which in turn uses the preferred name syntax defined
1517
/// in [RFC 1034 3.5] and amended in [RFC 1123 2.1].
@@ -100,6 +102,9 @@ impl PartialEq for DNSName<'_> {
100102
}
101103
}
102104

105+
/// Represents either a DNS name or a DNS wildcard for use in X.509 name
106+
/// matching.
107+
///
103108
/// A `DNSPattern` represents a subset of the domain name wildcard matching
104109
/// behavior defined in [RFC 6125 6.4.3]. In particular, all DNS patterns
105110
/// must either be exact matches (post-normalization) *or* a single wildcard

0 commit comments

Comments
 (0)