Skip to content

Commit

Permalink
chore: fix spelling issues (#727)
Browse files Browse the repository at this point in the history
Signed-off-by: camcui <[email protected]>
  • Loading branch information
camcui authored Jan 18, 2025
1 parent 485ffab commit 6a0caa1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion curve25519-dalek/src/backend/vector/scalar_mul/straus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub mod spec {
/// method. See the `Straus` struct in the serial backend for more
/// details.
///
/// This exists as a seperate implementation from that one because the
/// This exists as a separate implementation from that one because the
/// AVX2 code uses different curve models (it does not pass between
/// multiple models during scalar mul), and it has to convert the
/// point representation on the fly.
Expand Down
10 changes: 5 additions & 5 deletions curve25519-dalek/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
#[cfg(curve25519_dalek_backend = "auto")]
compile_error!("curve25519_dalek_backend is 'auto'");

// fiat was overriden
// fiat was overridden
#[cfg(curve25519_dalek_backend = "fiat")]
compile_error!("curve25519_dalek_backend is 'fiat'");

// serial was assumed or overriden
// serial was assumed or overridden
#[cfg(curve25519_dalek_backend = "serial")]
compile_error!("curve25519_dalek_backend is 'serial'");

// simd was assumed over overriden
// simd was assumed over overridden
#[cfg(curve25519_dalek_backend = "simd")]
compile_error!("curve25519_dalek_backend is 'simd'");

// 32 bits target_pointer_width was assumed or overriden
// 32 bits target_pointer_width was assumed or overridden
#[cfg(curve25519_dalek_bits = "32")]
compile_error!("curve25519_dalek_bits is '32'");

// 64 bits target_pointer_width was assumed or overriden
// 64 bits target_pointer_width was assumed or overridden
#[cfg(curve25519_dalek_bits = "64")]
compile_error!("curve25519_dalek_bits is '64'");
2 changes: 1 addition & 1 deletion curve25519-dalek/tests/build_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ match_and_report "curve25519_dalek_bits is '32'" "$OUT"
cargo clean
OUT=build_5_1.txt
env RUSTFLAGS="--cfg curve25519_dalek_diagnostics=\"build\" --cfg curve25519_dalek_backend=\"simd\"" cargo build --target wasm32-unknown-unknown > "$OUT" 2>&1
# This overide must fail the compilation since "simd" is not available
# This override must fail the compilation since "simd" is not available
# See: issues/532
match_and_report "Could not override curve25519_dalek_backend to simd" "$OUT"

Expand Down

0 comments on commit 6a0caa1

Please sign in to comment.