Skip to content

Commit 79e2127

Browse files
authored
Merge pull request #596 from wanshuangcheng/develop
tools: fix some typos in comment
2 parents 414a8fd + c015927 commit 79e2127

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

docs/Plugin.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `key_store` and `indexer` role plugin can replace the default implementation
1919

2020
The `sub_command` role plugin will add a top level sub-command in ckb-cli, the plugin will need to parse the command line argument itself.
2121

22-
The `callback` role plugin will be called when certain event happend (send transaction for example).
22+
The `callback` role plugin will be called when certain event happened (send transaction for example).
2323

2424
Here is the config return as the response of `get_config` method.
2525

@@ -39,7 +39,7 @@ A plugin can define as `daemon` pluign, ckb-cli will start all actived `daemon`
3939
The plugin can access rpc request by `rpc_` prefixed methods, they are just proxies of [CKB json-rpc](https://github.com/nervosnetwork/ckb/blob/develop/rpc/README.md) calls. It is useful when implement your own indexer.
4040

4141
# RPC protocol
42-
The rpc is follow jsonrpc 2.0 protocol. For rust user, `plugin-protocl` package provide a more semantic interface.
42+
The rpc is follow jsonrpc 2.0 protocol. For rust user, `plugin-protocol` package provide a more semantic interface.
4343

4444
## Get config of the plugin
4545

@@ -468,7 +468,7 @@ If you want see all the debug log messages from plugin module, you can start ckb
468468
RUST_LOG=ckb_cli::plugin=debug ./target/debug/ckb-cli
469469
```
470470

471-
Show the detail infromation of the plugin:
471+
Show the detail information of the plugin:
472472
``` shell
473473
CKB> plugin info --name demo_keystore
474474
daemon: true

src/plugin/manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ impl PluginProcess {
963963
Err(err) => Err(err.to_string())
964964
}
965965
}
966-
// Send repsonse requested by plugin to ckb-cli (ServiceProvider)
966+
// Send response requested by plugin to ckb-cli (ServiceProvider)
967967
recv(service_receiver) -> msg_result => {
968968
match msg_result {
969969
Ok(msg) => handle_service_msgs(&mut stdin, msg),

src/subcommands/tui/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ fn render_blocks<B: Backend>(state: &State, ctx: RenderContext<B>) {
428428
Style::default().modifier(Modifier::BOLD),
429429
),
430430
Text::raw(format!(
431-
" commited={}, proposed={}, uncles={}, inputs={}, outputs={}, cellbase={}",
431+
" committed={}, proposed={}, uncles={}, inputs={}, outputs={}, cellbase={}",
432432
block.commit_tx_count,
433433
block.proposal_tx_count,
434434
block.uncle_count,

src/subcommands/tx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ fn get_keystore_signer(
669669
)?;
670670
if data.len() != 65 {
671671
Err(format!(
672-
"Invalid signature data lenght: {}, data: {:?}",
672+
"Invalid signature data length: {}, data: {:?}",
673673
data.len(),
674674
data
675675
))

src/utils/other.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub fn get_signer(
106106
)?;
107107
if data.len() != 65 {
108108
Err(format!(
109-
"Invalid signature data lenght: {}, data: {:?}",
109+
"Invalid signature data length: {}, data: {:?}",
110110
data.len(),
111111
data
112112
))

src/utils/yaml_ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl<'a> YamlEmitter<'a> {
264264

265265
/// Emit a yaml as a hash or array value: i.e., which should appear
266266
/// following a ":" or "-", either after a space, or on a new line.
267-
/// If `inline` is true, then the preceeding characters are distinct
267+
/// If `inline` is true, then the preceding characters are distinct
268268
/// and short enough to respect the compact flag.
269269
fn emit_val(&mut self, inline: bool, val: &Yaml) -> EmitResult {
270270
match *val {

test/src/miner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl Miner {
142142
count += 1;
143143

144144
if count > 900 {
145-
panic!("wait transaction to commited failed");
145+
panic!("wait transaction to committed failed");
146146
}
147147
thread::sleep(Duration::from_millis(20));
148148
}

0 commit comments

Comments
 (0)