Skip to content

Commit f6f6092

Browse files
committed
Fix typos
1 parent e2f4c45 commit f6f6092

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

rust/bridge/ffi/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::util::*;
2121

2222
#[no_mangle]
2323
pub unsafe extern "C" fn signal_print_ptr(p: *const std::ffi::c_void) {
24-
println!("In rust thats {:?}", p);
24+
println!("In rust that's {:?}", p);
2525
}
2626

2727
#[no_mangle]

rust/bridge/shared/src/support/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn describe_panic(any: &Box<dyn std::any::Any + Send>) -> String {
6767
///
6868
/// - Node: boxed values use Neon's [`JsBox`][] type, but this is only used for return values.
6969
/// Arguments are always in the form of a JavaScript object with a `_nativeHandle` property that
70-
/// refers to the box. The type inside the box may not directy be a `Foo` on the Rust side;
70+
/// refers to the box. The type inside the box may not directly be a `Foo` on the Rust side;
7171
/// that's an implementation detail.
7272
///
7373
/// For TypeScript's benefit, each boxed type gets its own unique `interface Foo`, and the

rust/poksho/src/statement.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ use std::collections::HashMap;
4949
// left-hand-side under the group homomorphism). In the above cases, "a" is the witness.
5050
//
5151
// The zero-knowledge proof is a standard Fiat-Shamir Sigma/Schnorr proof of knowledge. To
52-
// immplement Fiat-Shamir hashing we use the SHO/HMAC-SHA256 construct, which provides a stateful object
53-
// which we can use to Absorb data, and then Squeeze out arbitrary-length ouput. We use a SHO
52+
// implement Fiat-Shamir hashing we use the SHO/HMAC-SHA256 construct, which provides a stateful object
53+
// which we can use to Absorb data, and then Squeeze out arbitrary-length output. We use a SHO
5454
// object not only to produce the Schnorr challenge, but also to produce the Schnorr nonce by
5555
// hashing some caller-supplied random data, the witness, and the message. This "synthetic nonce"
5656
// strategy is intended to ensure that the nonce appears random to any attacker and that different

rust/protocol/src/sealed_sender.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ fn test_lossless_round_trip() -> Result<()> {
16791679

16801680
// To test a hypothetical addition of a new field:
16811681
//
1682-
// Step 1: tempororarily add a new field to the .proto.
1682+
// Step 1: temporarily add a new field to the .proto.
16831683
//
16841684
// --- a/rust/protocol/src/proto/sealed_sender.proto
16851685
// +++ b/rust/protocol/src/proto/sealed_sender.proto

rust/protocol/tests/session.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fn chain_jump_over_limit_with_self() -> Result<(), SignalProtocolError> {
435435
let _msg = encrypt(
436436
&mut a1_store,
437437
&a2_address,
438-
"Yet another message for youself",
438+
"Yet another message for yourself",
439439
)
440440
.await?;
441441
}

rust/zkgroup/src/crypto/signature.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ mod tests {
9595
.verify(&message, signature)
9696
.unwrap();
9797

98-
// test signature falure
98+
// test signature failure
9999
message[0] ^= 1;
100100
match key_pair2.get_public_key().verify(&message, signature) {
101101
Err(SignatureVerificationFailure) => (),

0 commit comments

Comments
 (0)