Skip to content

Commit

Permalink
fixing typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanYuan committed Aug 15, 2023
1 parent 84e657d commit da0acc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions util/jsonrpc-types/src/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::fmt;

/// Specifies how the script `code_hash` is used to match the script code and how to run the code.
///
/// Allowed kinds: "data", "type", "data1" and data2
/// Allowed kinds: "data", "type", "data1" and "data2"
///
/// Refer to the section [Code Locating](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0022-transaction-structure/0022-transaction-structure.md#code-locating)
/// and [Upgradable Script](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0022-transaction-structure/0022-transaction-structure.md#upgradable-script)
Expand Down Expand Up @@ -384,7 +384,7 @@ pub struct Transaction {
pub version: Version,
/// An array of cell deps.
///
/// CKB locates lock script and type script code via cell deps. The script also can uses syscalls
/// CKB locates lock script and type script code via cell deps. The script also can use syscalls
/// to read the cells here.
///
/// Unlike inputs, the live cells can be used as cell deps in multiple transactions.
Expand Down Expand Up @@ -536,7 +536,7 @@ pub struct TransactionWithStatusResponse {
pub transaction: Option<ResponseFormat<TransactionView>>,
/// The transaction consumed cycles.
pub cycles: Option<Cycle>,
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enter the tx-pool. unit: Millisecond
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enters the tx-pool. unit: Millisecond
pub time_added_to_pool: Option<Uint64>,
/// The Transaction status.
pub tx_status: TxStatus,
Expand Down Expand Up @@ -1461,7 +1461,7 @@ pub struct Buried {
pub status: SoftForkStatus,
/// Whether the rules are active
pub active: bool,
/// The first epoch which the rules will be enforced
/// The first epoch which the rules will be enforced
pub epoch: EpochNumber,
}

Expand Down
2 changes: 1 addition & 1 deletion util/types/src/core/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::packed;
/// The hash type is split into the high 7 bits and the low 1 bit,
/// when the low 1 bit is 1, it indicates the type,
/// when the low 1 bit is 0, it indicates the data,
/// and then it relies on the high 7 bits to indicate
/// and then it relies on the high 7 bits to indicate
/// that the data actually corresponds to the version.
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
pub enum ScriptHashType {
Expand Down
2 changes: 1 addition & 1 deletion util/types/src/core/tx_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub struct TransactionWithStatus {
pub tx_status: TxStatus,
/// The transaction verification consumed cycles
pub cycles: Option<core::Cycle>,
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enter the tx-pool. unit: Millisecond
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enters the tx-pool. unit: Millisecond
pub time_added_to_pool: Option<u64>,
}

Expand Down

0 comments on commit da0acc9

Please sign in to comment.