From 27189b2617b4a908f6d58f492d55577a1669b88c Mon Sep 17 00:00:00 2001 From: Justin Traglia Date: Wed, 12 Jul 2023 16:53:56 -0500 Subject: [PATCH] Fix some typos --- bindings/rust/build.rs | 2 +- bindings/rust/src/bindings/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index 37d0e4f1d..369abe84b 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -7,7 +7,7 @@ const MINIMAL_FIELD_ELEMENTS_PER_BLOB: usize = 4; /// Compiles blst. // // NOTE: This code is taken from https://github.com/supranational/blst `build.rs` `main`. The crate -// is not used as a depedency to avoid double link issues on dependants. +// is not used as a dependency to avoid double link issues on dependants. fn compile_blst(blst_base_dir: PathBuf) { // account for cross-compilation [by examining environment variables] let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); diff --git a/bindings/rust/src/bindings/mod.rs b/bindings/rust/src/bindings/mod.rs index 9d1aaff4e..dcfcb226b 100644 --- a/bindings/rust/src/bindings/mod.rs +++ b/bindings/rust/src/bindings/mod.rs @@ -148,7 +148,7 @@ impl KZGSettings { .as_os_str() .to_str() .ok_or(Error::InvalidTrustedSetup(format!( - "Unsuported non unicode file path" + "Unsupported non unicode file path" )))? .as_bytes() }; @@ -180,7 +180,7 @@ impl KZGSettings { }; // We don't really care if this succeeds. - let _uncheched_close_result = unsafe { libc::fclose(file_ptr) }; + let _unchecked_close_result = unsafe { libc::fclose(file_ptr) }; drop(file_path); result