diff --git a/examples/abi_encode/src/lib.rs b/examples/abi_encode/src/lib.rs index 952cc8ee..81827b94 100644 --- a/examples/abi_encode/src/lib.rs +++ b/examples/abi_encode/src/lib.rs @@ -87,7 +87,7 @@ impl Encoder { data: Bytes, timestamp: U256, ) -> Vec { - // set the data to arrary and concat it directly + // set the data to array and concat it directly let tx_hash_data_encode_packed = [ &target.to_vec(), &value.to_be_bytes_vec(), diff --git a/examples/encoding_and_hashing/src/lib.rs b/examples/encoding_and_hashing/src/lib.rs index c04b0ab8..0310ec69 100644 --- a/examples/encoding_and_hashing/src/lib.rs +++ b/examples/encoding_and_hashing/src/lib.rs @@ -104,7 +104,7 @@ impl Hasher { data: Bytes, timestamp: U256, ) -> FixedBytes<32> { - // set the data to arrary and concat it directly + // set the data to array and concat it directly let tx_hash_data_encode_packed = [ &target.to_vec(), &value.to_be_bytes_vec(), diff --git a/stylus-sdk/src/methods.rs b/stylus-sdk/src/methods.rs index 0e9586fb..7c301308 100644 --- a/stylus-sdk/src/methods.rs +++ b/stylus-sdk/src/methods.rs @@ -3,7 +3,7 @@ //! Types relating to method definitions. -/// State mutability of a contract fuction. This is currently used for checking whether contracts +/// State mutability of a contract function. This is currently used for checking whether contracts /// are allowed to override a function from another contract they inherit from. /// Users should not need this type outside of proc macros. #[derive(Debug, Clone, Copy)]