Fix typos by codespell (#7600)

# Description

Found via `codespell -S target -L
crate,ser,numer,falsy,ro,te,nd,bu,ndoes,statics,ons,fo,rouge,pard`

# User-Facing Changes

None.

# Tests + Formatting

None and done.

# After Submitting

None.
This commit is contained in:
Kian-Meng Ang
2022-12-26 15:31:26 +08:00
committed by GitHub
parent 2415381682
commit 79000aa5e0
39 changed files with 61 additions and 61 deletions

View File

@ -73,7 +73,7 @@ impl ViewCommand for TableCmd {
Shortcode::new("Esc", "", "Exits cursor mode. Exits the just explored dataset."),
Shortcode::new("i", "view", "Enters cursor mode to inspect individual cells"),
Shortcode::new("t", "view", "Transpose table, so that columns become rows and vice versa"),
Shortcode::new("e", "view", "Open expand view (equvalent of :expand)"),
Shortcode::new("e", "view", "Open expand view (equivalent of :expand)"),
Shortcode::new("Enter", "cursor", "In cursor mode, explore the data of the selected cell"),
];

View File

@ -77,8 +77,8 @@ fn eval_source2(
return Err(ShellError::IOError(err.to_string()));
}
// eval_block outputs all expressions expept the last to STDOUT;
// we don't wont that.
// eval_block outputs all expressions except the last to STDOUT;
// we don't won't that.
//
// So we LITERALLY ignore all expressions except the LAST.
if block.len() > 1 {

View File

@ -171,7 +171,7 @@ fn build_expanded_table(
match table {
Some((mut table, with_header, with_index)) => {
// controll width via removing table columns.
// control width via removing table columns.
let theme = load_theme_from_config(config);
table.truncate(remaining_width, &theme);

View File

@ -732,7 +732,7 @@ fn handle_event<V: View>(
}
}
// was not handled so we must check our default controlls
// was not handled so we must check our default controls
handle_general_key_events2(&key, search, command, view, info);
None

View File

@ -46,9 +46,9 @@ impl CommandRegistry {
);
}
pub fn create_aliase(&mut self, aliase: &str, command: &str) {
pub fn create_aliase(&mut self, aliases: &str, command: &str) {
self.aliases.insert(
Cow::Owned(aliase.to_owned()),
Cow::Owned(aliases.to_owned()),
Cow::Owned(command.to_owned()),
);
}