Skip to content

Commit 5070ce1

Browse files
committed
rustdoc fixes
1 parent 867c6e5 commit 5070ce1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/signer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl CngSigningKey {
101101
&self.algorithm_group
102102
}
103103

104-
/// Return number of bits in the key material
104+
/// Return a number of bits in the key material
105105
pub fn bits(&self) -> u32 {
106106
self.bits
107107
}

src/store.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl CertStore {
6969
self.0
7070
}
7171

72-
/// Open certificate store of the given type and name
72+
/// Open a certificate store of the given type and name
7373
pub fn open(store_type: CertStoreType, store_name: &str) -> Result<CertStore> {
7474
unsafe {
7575
let store_name = utf16z!(store_name);
@@ -88,7 +88,7 @@ impl CertStore {
8888
}
8989
}
9090

91-
/// Import certificate store from PKCS12 file
91+
/// Import certificate store from a PKCS12 file
9292
pub fn from_pkcs12(data: &[u8], password: &str, flags: Pkcs12Flags) -> Result<CertStore> {
9393
unsafe {
9494
let blob = CRYPT_INTEGER_BLOB {
@@ -107,39 +107,39 @@ impl CertStore {
107107
}
108108
}
109109

110-
/// Find list of certificates matching the subject substring
110+
/// Find a list of certificates matching the subject substring
111111
pub fn find_by_subject_str<S>(&self, subject: S) -> Result<Vec<CertContext>>
112112
where
113113
S: AsRef<str>,
114114
{
115115
self.find_by_str(subject.as_ref(), CERT_FIND_SUBJECT_STR)
116116
}
117117

118-
/// Find list of certificates matching the exact subject name
118+
/// Find a list of certificates matching the exact subject name
119119
pub fn find_by_subject_name<S>(&self, subject: S) -> Result<Vec<CertContext>>
120120
where
121121
S: AsRef<str>,
122122
{
123123
self.find_by_name(subject.as_ref(), CERT_FIND_SUBJECT_NAME)
124124
}
125125

126-
/// Find list of certificates matching the issuer substring
126+
/// Find a list of certificates matching the issuer substring
127127
pub fn find_by_issuer_str<S>(&self, subject: S) -> Result<Vec<CertContext>>
128128
where
129129
S: AsRef<str>,
130130
{
131131
self.find_by_str(subject.as_ref(), CERT_FIND_ISSUER_STR)
132132
}
133133

134-
/// Find list of certificates matching the exact issuer name
134+
/// Find a list of certificates matching the exact issuer name
135135
pub fn find_by_issuer_name<S>(&self, subject: S) -> Result<Vec<CertContext>>
136136
where
137137
S: AsRef<str>,
138138
{
139139
self.find_by_name(subject.as_ref(), CERT_FIND_ISSUER_NAME)
140140
}
141141

142-
/// Find list of certificates matching the SHA1 hash
142+
/// Find a list of certificates matching the SHA1 hash
143143
pub fn find_by_sha1<D>(&self, hash: D) -> Result<Vec<CertContext>>
144144
where
145145
D: AsRef<[u8]>,
@@ -158,7 +158,7 @@ impl CertStore {
158158
// Also, since SHA1 is being deprecated, Windows components should not use.
159159
// Therefore, the need to find via SHA256 instead of SHA1.
160160

161-
/// Find list of certificates matching the SHA256 hash
161+
/// Find a list of certificates matching the SHA256 hash
162162
pub fn find_by_sha256<D>(&self, hash: D) -> Result<Vec<CertContext>>
163163
where
164164
D: AsRef<[u8]>,
@@ -170,7 +170,7 @@ impl CertStore {
170170
unsafe { self.do_find_by_sha256_property(&hash_blob as *const _ as _) }
171171
}
172172

173-
/// Find list of certificates matching the key identifier
173+
/// Find a list of certificates matching the key identifier
174174
pub fn find_by_key_id<D>(&self, key_id: D) -> Result<Vec<CertContext>>
175175
where
176176
D: AsRef<[u8]>,

0 commit comments

Comments
 (0)