Skip to content

Commit 8cabd4b

Browse files
committed
lib: consistent desc. of permitted and excluded subtrees
Matches language across the `permitted_subtrees` and `excluded_subtrees` rustdoc comments for the `NameConstraints` struct.
1 parent 8ce711f commit 8cabd4b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,13 +1237,11 @@ impl CertificateParams {
12371237
/// (only relevant for CA certificates)
12381238
#[derive(Debug, PartialEq, Eq, Clone)]
12391239
pub struct NameConstraints {
1240-
/// If non-empty, a whitelist of subtrees that the
1241-
/// domain has to match.
1240+
/// A list of subtrees that the domain has to match.
12421241
pub permitted_subtrees: Vec<GeneralSubtree>,
1243-
/// A list of excluded subtrees.
1242+
/// A list of subtrees that the domain must not match.
12441243
///
1245-
/// Any name matching an excluded subtree is invalid
1246-
/// even if it also matches a permitted subtree.
1244+
/// Any name matching an excluded subtree is invalid even if it also matches a permitted subtree.
12471245
pub excluded_subtrees: Vec<GeneralSubtree>,
12481246
}
12491247

0 commit comments

Comments
 (0)