From cc65acd361a045bfeb524515208f4bf44328057a Mon Sep 17 00:00:00 2001 From: piguagua Date: Wed, 15 Jan 2025 18:34:15 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: piguagua --- book/src/sdk/pipeline/intro.md | 2 +- crates/derive/src/stages/batch/batch_queue.rs | 2 +- crates/derive/src/test_utils/batch_stream.rs | 4 ++-- crates/derive/src/test_utils/frame_queue.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/book/src/sdk/pipeline/intro.md b/book/src/sdk/pipeline/intro.md index b0e6813699..a202d50ddd 100644 --- a/book/src/sdk/pipeline/intro.md +++ b/book/src/sdk/pipeline/intro.md @@ -182,7 +182,7 @@ use core::iter::Iterator; let l2_safe_head = L2BlockInfo::default(); loop { if matches!(pipeline.step(l2_safe_head).await, StepResult::PreparedAttributes) { - // The pipeline has succesfully prepared payload attributes, break the loop. + // The pipeline has successfully prepared payload attributes, break the loop. break; } } diff --git a/crates/derive/src/stages/batch/batch_queue.rs b/crates/derive/src/stages/batch/batch_queue.rs index df43903ebd..012dca73bc 100644 --- a/crates/derive/src/stages/batch/batch_queue.rs +++ b/crates/derive/src/stages/batch/batch_queue.rs @@ -15,7 +15,7 @@ use maili_protocol::{ use op_alloy_genesis::RollupConfig; /// [BatchQueue] is responsible for o rdering unordered batches -/// and gnerating empty batches when the sequence window has passed. +/// and generating empty batches when the sequence window has passed. /// /// It receives batches that are tagged with the L1 Inclusion block of the batch. /// It only considers batches that are inside the sequencing window of a specific L1 Origin. diff --git a/crates/derive/src/test_utils/batch_stream.rs b/crates/derive/src/test_utils/batch_stream.rs index b855eaea35..2e7cd82e4e 100644 --- a/crates/derive/src/test_utils/batch_stream.rs +++ b/crates/derive/src/test_utils/batch_stream.rs @@ -21,9 +21,9 @@ pub struct TestBatchStreamProvider { pub origin: Option, /// A list of batches to return. pub batches: Vec>, - /// Wether the reset method was called. + /// Whether the reset method was called. pub reset: bool, - /// Wether the provider was flushed. + /// Whether the provider was flushed. pub flushed: bool, } diff --git a/crates/derive/src/test_utils/frame_queue.rs b/crates/derive/src/test_utils/frame_queue.rs index 8a1db61803..cd0f3df1fc 100644 --- a/crates/derive/src/test_utils/frame_queue.rs +++ b/crates/derive/src/test_utils/frame_queue.rs @@ -20,7 +20,7 @@ pub struct TestFrameQueueProvider { pub data: Vec>, /// The origin to return. pub origin: Option, - /// Wether the reset method was called. + /// Whether the reset method was called. pub reset: bool, }