Fix doc test

This commit is contained in:
Steven Fackler 2015-03-21 10:00:00 -07:00
parent ac24bc5422
commit b406b7c6e6
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ use self::State::*;
/// use openssl::crypto::hash::Type; /// use openssl::crypto::hash::Type;
/// use openssl::crypto::hmac::HMAC; /// use openssl::crypto::hmac::HMAC;
/// let key = b"Jefe"; /// 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 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); /// let mut h = HMAC::new(Type::MD5, &*key);
/// h.write_all(data[0]); /// h.write_all(data[0]);