aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-03-21 10:00:00 -0700
committerSteven Fackler <[email protected]>2015-03-21 10:00:00 -0700
commitb406b7c6e60525401459db7244c39de8446ac999 (patch)
treefed8eb0133875d7e9c7577aea70c364678bf1b3f /openssl/src
parentFix warnings and build issues (diff)
downloadrust-openssl-b406b7c6e60525401459db7244c39de8446ac999.tar.xz
rust-openssl-b406b7c6e60525401459db7244c39de8446ac999.zip
Fix doc test
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/crypto/hmac.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/crypto/hmac.rs b/openssl/src/crypto/hmac.rs
index 01874aec..5ffffcb7 100644
--- a/openssl/src/crypto/hmac.rs
+++ b/openssl/src/crypto/hmac.rs
@@ -54,7 +54,7 @@ use self::State::*;
/// use openssl::crypto::hash::Type;
/// use openssl::crypto::hmac::HMAC;
/// let key = b"Jefe";
-/// let data = [b"what do ya ", b"want for nothing?"];
+/// let data: &[&[u8]] = &[b"what do ya ", b"want for nothing?"];
/// let spec = b"\x75\x0c\x78\x3e\x6a\xb0\xb5\x03\xea\xa8\x6e\x31\x0a\x5d\xb7\x38";
/// let mut h = HMAC::new(Type::MD5, &*key);
/// h.write_all(data[0]);