From 6c6e716ae71bbcca96f708489b02eedc65b8eb96 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Sat, 9 Sep 2023 14:53:27 -0400 Subject: [PATCH] lib: consistent desc. of permitted and excluded subtrees. Matches language across the `permitted_subtrees` and `excluded_subtrees` rustdoc comments for the `NameConstraints` struct. --- src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 035cbaac..ca798a62 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1256,13 +1256,11 @@ impl CertificateParams { /// (only relevant for CA certificates) #[derive(Debug, PartialEq, Eq, Clone)] pub struct NameConstraints { - /// If non-empty, a whitelist of subtrees that the - /// domain has to match. + /// If non-empty, an allow list of subtrees that the domain has to match. pub permitted_subtrees: Vec, - /// A list of excluded subtrees. + /// If non-empty, a forbid-list of excluded subtrees that the domain must not match. /// - /// Any name matching an excluded subtree is invalid - /// even if it also matches a permitted subtree. + /// Any name matching an excluded subtree is invalid even if it also matches a permitted subtree. pub excluded_subtrees: Vec, }