Skip to content

Commit 74406a6

Browse files
committed
style: fix clippy issues about doc
1 parent e87b04e commit 74406a6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

client/rpc-v2/types/src/transaction/signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub struct TransactionSignature {
3232
///
3333
/// - For legacy transactions, this is the recovery id.
3434
/// - For typed transactions (EIP-2930, EIP-1559, EIP-4844), this is set to the parity
35-
/// (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
35+
/// (0 for even, 1 for odd) of the y-value of the secp256k1 signature.
3636
///
3737
/// # Note
3838
///

frame/evm/precompile/bls12377/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ impl Precompile for Bls12377Pairing {
525525
/// > Pairing call expects `384*k` bytes as an inputs that is interpreted as byte concatenation of `k` slices. Each slice has the following structure:
526526
/// > - `128` bytes of G1 point encoding
527527
/// > - `256` bytes of G2 point encoding
528-
/// > Output is a `32` bytes where last single byte is `0x01` if pairing result is equal to multiplicative identity in a pairing target field and `0x00` otherwise
529-
/// > (which is equivalent of Big Endian encoding of Solidity values `uint256(1)` and `uin256(0)` respectively).
528+
/// > Output is a `32` bytes where last single byte is `0x01` if pairing result is equal to multiplicative identity in a pairing target field and `0x00` otherwise
529+
/// > (which is equivalent of Big Endian encoding of Solidity values `uint256(1)` and `uin256(0)` respectively).
530530
fn execute(handle: &mut impl PrecompileHandle) -> PrecompileResult {
531531
if handle.input().is_empty() || handle.input().len() % 384 != 0 {
532532
return Err(PrecompileFailure::Error {

frame/evm/precompile/bls12381/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ impl Precompile for Bls12381Pairing {
525525
/// > Pairing call expects `384*k` bytes as an inputs that is interpreted as byte concatenation of `k` slices. Each slice has the following structure:
526526
/// > - `128` bytes of G1 point encoding
527527
/// > - `256` bytes of G2 point encoding
528-
/// > Output is a `32` bytes where last single byte is `0x01` if pairing result is equal to multiplicative identity in a pairing target field and `0x00` otherwise
529-
/// > (which is equivalent of Big Endian encoding of Solidity values `uint256(1)` and `uin256(0)` respectively).
528+
/// > Output is a `32` bytes where last single byte is `0x01` if pairing result is equal to multiplicative identity in a pairing target field and `0x00` otherwise
529+
/// > (which is equivalent of Big Endian encoding of Solidity values `uint256(1)` and `uin256(0)` respectively).
530530
fn execute(handle: &mut impl PrecompileHandle) -> PrecompileResult {
531531
if handle.input().is_empty() || handle.input().len() % 384 != 0 {
532532
return Err(PrecompileFailure::Error {

frame/evm/precompile/bw6761/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ impl Precompile for Bw6761Pairing {
484484
/// > Pairing call expects `384*k` bytes as an inputs that is interpreted as byte concatenation of `k` slices. Each slice has the following structure:
485485
/// > - `192` bytes of G1 point encoding
486486
/// > - `192` bytes of G2 point encoding
487-
/// > Output is a `32` bytes where last single byte is `0x01` if pairing result is equal to multiplicative identity in a pairing target field and `0x00` otherwise
488-
/// > (which is equivalent of Big Endian encoding of Solidity values `uint256(1)` and `uin256(0)` respectively).
487+
/// > Output is a `32` bytes where last single byte is `0x01` if pairing result is equal to multiplicative identity in a pairing target field and `0x00` otherwise
488+
/// > (which is equivalent of Big Endian encoding of Solidity values `uint256(1)` and `uin256(0)` respectively).
489489
fn execute(handle: &mut impl PrecompileHandle) -> PrecompileResult {
490490
if handle.input().is_empty() || handle.input().len() % 384 != 0 {
491491
return Err(PrecompileFailure::Error {

frame/evm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//! Observable differences include:
4242
//!
4343
//! - The available length of block hashes may not be 256 depending on the configuration of the System pallet
44-
//! in the Substrate runtime.
44+
//! in the Substrate runtime.
4545
//! - Difficulty and coinbase, which do not make sense in this pallet and is currently hard coded to zero.
4646
//!
4747
//! We currently do not aim to make unobservable behaviors, such as state root, to be the same. We also don't aim to follow

0 commit comments

Comments
 (0)