diff --git a/crates/tor-hsclient/src/state.rs b/crates/tor-hsclient/src/state.rs index e50f822e9..26d82dfc4 100644 --- a/crates/tor-hsclient/src/state.rs +++ b/crates/tor-hsclient/src/state.rs @@ -190,7 +190,7 @@ type Continuation = ( /// ### Nested loops /// /// Sometimes we want to go round again *without* unlocking. -/// Sometimes we must unlock and wait anbd relock. +/// Sometimes we must unlock and wait and relock. /// /// The drop tracking workaround (see above) means we have to do these two /// in separate scopes. @@ -229,7 +229,7 @@ fn obtain_circuit_or_continuation_info( last_used: _, circuit: _, } => data, - _ => panic!("state changed between maches"), + _ => panic!("state changed between matches"), }; *state = ServiceState::Closed { data, @@ -274,7 +274,7 @@ fn obtain_circuit_or_continuation_info( }, ) { ServiceState::Closed { data, .. } => data, - _ => panic!("state changed between maches"), + _ => panic!("state changed between matches"), }; (data, barrier_send) } diff --git a/crates/tor-netdoc/src/doc/hsdesc.rs b/crates/tor-netdoc/src/doc/hsdesc.rs index e59ee728d..57890014a 100644 --- a/crates/tor-netdoc/src/doc/hsdesc.rs +++ b/crates/tor-netdoc/src/doc/hsdesc.rs @@ -236,7 +236,7 @@ impl EncryptedHsDesc { .map_err(|e| EK::BadObjectVal.with_msg("Bad utf-8 in middle document"))?; let middle = middle::HsDescMiddle::parse(middle)?; - // Decrypt tne encryption layer and parse the inner document. + // Decrypt the encryption layer and parse the inner document. let inner = middle .decrypt_inner( &blinded_id,