From 1877b6064f25d7f7f35606d43ef85ef7993c1261 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Sun, 13 Oct 2024 14:18:56 +0200 Subject: [PATCH] fix: typos (#690) * fix typo * fix typos * fix typo * fix typo * fix typo --- bin/client/src/l1/chain_provider.rs | 2 +- bin/client/src/l2/mod.rs | 2 +- book/src/fpp-dev/env.md | 2 +- book/src/sdk/fpvm-backend.md | 4 ++-- crates/mpt/src/test_util.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/client/src/l1/chain_provider.rs b/bin/client/src/l1/chain_provider.rs index 7c38d8004..3e850dc2d 100644 --- a/bin/client/src/l1/chain_provider.rs +++ b/bin/client/src/l1/chain_provider.rs @@ -83,7 +83,7 @@ impl ChainProvider for OracleL1ChainProvider { .map(|(_, rlp)| { let envelope = ReceiptEnvelope::decode_2718(&mut rlp.as_ref()) .map_err(|e| anyhow!("Failed to decode ReceiptEnvelope RLP: {e}"))?; - Ok(envelope.as_receipt().expect("Infalliable").clone()) + Ok(envelope.as_receipt().expect("Infallible").clone()) }) .collect::>>()?; diff --git a/bin/client/src/l2/mod.rs b/bin/client/src/l2/mod.rs index 459e4dfe8..3926cc91a 100644 --- a/bin/client/src/l2/mod.rs +++ b/bin/client/src/l2/mod.rs @@ -1,4 +1,4 @@ -//! Contains the L2-specifc contstructs of the client program. +//! Contains the L2-specific constructs of the client program. mod chain_provider; pub use chain_provider::OracleL2ChainProvider; diff --git a/book/src/fpp-dev/env.md b/book/src/fpp-dev/env.md index 3d4c1db14..4a4a5b541 100644 --- a/book/src/fpp-dev/env.md +++ b/book/src/fpp-dev/env.md @@ -57,7 +57,7 @@ The `host` is responsible for: Other programs (`clients`) may have different requirements for communication with the `host`, but the above is a common pattern for programs built on top of a FPVMs. In general: -1. The `client` program is a state machine that is responsible for bootstrapping itself from the inputs, executing the progam logic, and verifying the outcome. +1. The `client` program is a state machine that is responsible for bootstrapping itself from the inputs, executing the program logic, and verifying the outcome. 1. The `host` is responsible for providing the `client` with data it wasn't bootstrapped with, and for executing the program itself. {{#include ../links.md}} diff --git a/book/src/sdk/fpvm-backend.md b/book/src/sdk/fpvm-backend.md index 80f7d7fc0..909113a99 100644 --- a/book/src/sdk/fpvm-backend.md +++ b/book/src/sdk/fpvm-backend.md @@ -32,10 +32,10 @@ exposes a safe API: ```rs use kona_common::{io, FileDescriptor}; -// Print to `stdout`. Infalliable, will panic if dispatch fails. +// Print to `stdout`. Infallible, will panic if dispatch fails. io::print("Hello, world!"); -// Print to `stderr`. Infalliable, will panic if dispatch fails. +// Print to `stderr`. Infallible, will panic if dispatch fails. io::print_err("Goodbye, world!"); // Read from or write to a specified file descriptor. Returns a result with the diff --git a/crates/mpt/src/test_util.rs b/crates/mpt/src/test_util.rs index d4bba38db..ed8d5a12b 100644 --- a/crates/mpt/src/test_util.rs +++ b/crates/mpt/src/test_util.rs @@ -32,7 +32,7 @@ pub(crate) async fn get_live_derivable_receipts_list( let consensus_receipts = receipts .into_iter() .map(|r| { - let rpc_receipt = r.inner.as_receipt_with_bloom().expect("Infalliable"); + let rpc_receipt = r.inner.as_receipt_with_bloom().expect("Infallible"); let consensus_receipt = ReceiptWithBloom::new( Receipt { status: rpc_receipt.receipt.status,