aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGleb Kozyrev <[email protected]>2014-11-20 08:06:22 +0200
committerGleb Kozyrev <[email protected]>2014-11-20 19:53:42 +0200
commitef9e0b00bdbd688368c5ae3818b59bd7dcc651d7 (patch)
tree558b0ad6f95b8a4efec32ce814358ce39326145a /src
parentReplace an expired cert with a new one to make tests happy (diff)
downloadrust-openssl-ef9e0b00bdbd688368c5ae3818b59bd7dcc651d7.tar.xz
rust-openssl-ef9e0b00bdbd688368c5ae3818b59bd7dcc651d7.zip
Slice syntax fix
Diffstat (limited to 'src')
-rw-r--r--src/x509/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x509/mod.rs b/src/x509/mod.rs
index 21c3a9d6..f35eb7c2 100644
--- a/src/x509/mod.rs
+++ b/src/x509/mod.rs
@@ -152,7 +152,7 @@ impl<'a, T: AsStr<'a>> ToStr for Vec<T> {
/// .set_valid_period(365*2)
/// .set_CN("SuperMegaCorp Inc.")
/// .set_sign_hash(SHA256)
-/// .set_usage([DigitalSignature]);
+/// .set_usage(&[DigitalSignature]);
///
/// let (cert, pkey) = gen.generate().unwrap();
///