aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-04-02 11:15:59 -0700
committerSteven Fackler <[email protected]>2015-04-02 11:15:59 -0700
commit19a24b80e976459cd6d41ca629ee765ca71bdc05 (patch)
tree232fe46df27df239c97a3f24dafa4b6160c691e4 /openssl/src
parentMerge pull request #193 from seanmonstar/rustup (diff)
downloadrust-openssl-19a24b80e976459cd6d41ca629ee765ca71bdc05.tar.xz
rust-openssl-19a24b80e976459cd6d41ca629ee765ca71bdc05.zip
Fix doctest errors
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/crypto/hmac.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/crypto/hmac.rs b/openssl/src/crypto/hmac.rs
index 5ffffcb7..dace68aa 100644
--- a/openssl/src/crypto/hmac.rs
+++ b/openssl/src/crypto/hmac.rs
@@ -44,7 +44,7 @@ use self::State::*;
/// let data = b"what do ya want for nothing?";
/// let spec = b"\x75\x0c\x78\x3e\x6a\xb0\xb5\x03\xea\xa8\x6e\x31\x0a\x5d\xb7\x38";
/// let res = hmac(Type::MD5, key, data);
-/// assert_eq!(spec, res);
+/// assert_eq!(res, spec);
/// ```
///
/// Use the `Write` trait to supply the input in chunks.
@@ -60,7 +60,7 @@ use self::State::*;
/// h.write_all(data[0]);
/// h.write_all(data[1]);
/// let res = h.finish();
-/// assert_eq!(spec, res);
+/// assert_eq!(res, spec);
/// ```
pub struct HMAC {
ctx: ffi::HMAC_CTX,