fix doc code

This commit is contained in:
sun 2018-08-24 11:27:15 +08:00
parent 95ca81e0e6
commit 0ea12f922e

View file

@ -1221,7 +1221,7 @@ impl Keypair {
/// # let prehashed: Sha512 = Sha512::default();
/// # prehashed.input(message);
/// #
/// let context: &[u8] = "Ed25519DalekSignPrehashedDoctest";
/// let context: &[u8] = b"Ed25519DalekSignPrehashedDoctest";
///
/// let sig: Signature = keypair.sign_prehashed(prehashed, Some(context));
/// # }
@ -1285,7 +1285,7 @@ impl Keypair {
/// let prehashed: Sha512 = Sha512::default();
/// prehashed.input(message);
///
/// let context: &[u8] = "Ed25519DalekSignPrehashedDoctest";
/// let context: &[u8] = b"Ed25519DalekSignPrehashedDoctest";
///
/// let sig: Signature = keypair.sign_prehashed(prehashed, Some(context));
///