Skip to content

Commit b3114e4

Browse files
authored
Docs: Correct spelling of "commit" in comments (#112)
Update mod.rs
1 parent 59fdecd commit b3114e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/evm/src/block/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ impl<E: BlockExecutor, T> ExecutableTx<E> for T where
5858
{
5959
}
6060

61-
/// Marks whether transaction should be commited into block executor's state.
61+
/// Marks whether transaction should be committed into block executor's state.
6262
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6363
#[must_use]
6464
pub enum CommitChanges {
65-
/// Transaction should be commited into block executor's state.
65+
/// Transaction should be committed into block executor's state.
6666
Yes,
67-
/// Transaction should not be commited.
67+
/// Transaction should not be committed.
6868
No,
6969
}
7070

7171
impl CommitChanges {
72-
/// Returns `true` if transaction should be commited into block executor's state.
72+
/// Returns `true` if transaction should be committed into block executor's state.
7373
pub fn should_commit(self) -> bool {
7474
matches!(self, Self::Yes)
7575
}
@@ -191,7 +191,7 @@ pub trait BlockExecutor {
191191
/// 2. The original transaction and signer can be accessed via [`RecoveredTx`] for receipt
192192
/// generation
193193
///
194-
/// Returns [`None`] if commiting changes from the transaction should be skipped via
194+
/// Returns [`None`] if committing changes from the transaction should be skipped via
195195
/// [`CommitChanges::No`], otherwise returns the gas used by the transaction.
196196
fn execute_transaction_with_commit_condition(
197197
&mut self,

0 commit comments

Comments
 (0)