Fix typo 'epected' -> 'expected'

Fix minor spelling mistake in code comments.
This commit is contained in:
Tobin Harding 2022-02-03 08:36:36 +11:00
parent f3688ecf56
commit c30026d08b
2 changed files with 3 additions and 3 deletions

View File

@ -1577,7 +1577,7 @@ mod test {
let sk = SecretKey::from_slice(&SK_BYTES).expect("sk"); let sk = SecretKey::from_slice(&SK_BYTES).expect("sk");
// In fuzzing mode secret->public key derivation is different, so // In fuzzing mode secret->public key derivation is different, so
// hard-code the epected result. // hard-code the expected result.
#[cfg(not(fuzzing))] #[cfg(not(fuzzing))]
let pk = PublicKey::from_secret_key(&s, &sk); let pk = PublicKey::from_secret_key(&s, &sk);
#[cfg(fuzzing)] #[cfg(fuzzing)]
@ -1861,7 +1861,7 @@ mod test {
let sk = SecretKey::from_slice(&SK_BYTES).unwrap(); let sk = SecretKey::from_slice(&SK_BYTES).unwrap();
// In fuzzing mode secret->public key derivation is different, so // In fuzzing mode secret->public key derivation is different, so
// hard-code the epected result. // hard-code the expected result.
#[cfg(not(fuzzing))] #[cfg(not(fuzzing))]
let pk = PublicKey::from_secret_key(&s, &sk); let pk = PublicKey::from_secret_key(&s, &sk);
#[cfg(fuzzing)] #[cfg(fuzzing)]

View File

@ -470,7 +470,7 @@ mod tests {
let kp = KeyPair::from_seckey_slice(&secp, &SK_BYTES).expect("sk"); let kp = KeyPair::from_seckey_slice(&secp, &SK_BYTES).expect("sk");
// In fuzzing mode secret->public key derivation is different, so // In fuzzing mode secret->public key derivation is different, so
// hard-code the epected result. // hard-code the expected result.
kp.public_key() kp.public_key()
}; };
#[cfg(fuzzing)] #[cfg(fuzzing)]