From cb2d88e4a965168b9245f3dd4bf108d88d7683f6 Mon Sep 17 00:00:00 2001 From: piguagua Date: Wed, 15 Jan 2025 22:32:53 +0800 Subject: [PATCH] chore: fix some typos in comment (#906) 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 b0e68136..a202d50d 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 df43903e..012dca73 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 b855eaea..2e7cd82e 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 8a1db618..cd0f3df1 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, }