From 0a0d6b8ec9425f73186a5b205a71776cd3996c33 Mon Sep 17 00:00:00 2001 From: zhoujiaweii Date: Fri, 29 Aug 2025 17:50:07 +0800 Subject: [PATCH] chore: remove redundant word in comment Signed-off-by: zhoujiaweii --- crates/pink/pink/src/logger.rs | 4 ++-- crates/sidevm/host/README.md | 2 +- pallets/phala/src/phat_tokenomic.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/pink/pink/src/logger.rs b/crates/pink/pink/src/logger.rs index 16fe5035e9..f8bf7f1ac2 100644 --- a/crates/pink/pink/src/logger.rs +++ b/crates/pink/pink/src/logger.rs @@ -78,7 +78,7 @@ macro_rules! panic { /// An extension for Result to log error conveniently. pub trait ResultExt { - /// Log the the error message with `pink::error!` with a tip `msg` in front if the Result is Err. + /// Log the error message with `pink::error!` with a tip `msg` in front if the Result is Err. fn log_err(self, msg: &str) -> Self where Self: Sized, @@ -86,7 +86,7 @@ pub trait ResultExt { self.log_err_with_level(Level::Error, msg) } - /// Log the the error message with `level` and a tip `msg` in front if the Result is Err. + /// Log the error message with `level` and a tip `msg` in front if the Result is Err. fn log_err_with_level(self, level: Level, msg: &str) -> Self where Self: Sized; diff --git a/crates/sidevm/host/README.md b/crates/sidevm/host/README.md index d5493f2fc0..def69e1592 100644 --- a/crates/sidevm/host/README.md +++ b/crates/sidevm/host/README.md @@ -15,7 +15,7 @@ sidevm-host ## Push messages to the sidevm program Sidevm programs can receive messages from the host. There are three message channels: -- message: A arbitrary message can be sent from an ink contract in the the phat contract. +- message: A arbitrary message can be sent from an ink contract in the phat contract. - sysmessage: A message sent from the phat contract host to the sidevm program to inform some system events: ink logs, ink message outputs, ink events emitted by commands. - query: A query is sent from a external user via a worker local RPC in the phat contract system. diff --git a/pallets/phala/src/phat_tokenomic.rs b/pallets/phala/src/phat_tokenomic.rs index 709e80c4e9..3fd7cda352 100644 --- a/pallets/phala/src/phat_tokenomic.rs +++ b/pallets/phala/src/phat_tokenomic.rs @@ -92,7 +92,7 @@ pub mod pallet { /// /// If users stake on a contract doesn't deployed yet. The deposit would send to the cluster /// even if the contract is deployed later. User can re-stake with or without changing the amount - /// to sync the depoit the the cluster after the contract is actually deployed. + /// to sync the depoit the cluster after the contract is actually deployed. #[pallet::call_index(0)] #[pallet::weight({0})] pub fn adjust_stake(