Bump crate-ci/typos and fix typos (#12381)

Supersede #12376
This commit is contained in:
Stefan Holderbach 2024-04-04 09:59:21 +02:00 committed by GitHub
parent f0a073b397
commit e810995cf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 11 additions and 9 deletions

View File

@ -10,4 +10,4 @@ jobs:
uses: actions/checkout@v4.1.2
- name: Check spelling
uses: crate-ci/typos@v1.19.0
uses: crate-ci/typos@v1.20.3

View File

@ -22,7 +22,7 @@ impl Command for LazyJoin {
.required("right_on", SyntaxShape::Any, "Right column(s) to join on")
.switch(
"inner",
"inner joing between lazyframes (default)",
"inner join between lazyframes (default)",
Some('i'),
)
.switch("left", "left join between lazyframes", Some('l'))

View File

@ -128,7 +128,7 @@ impl Command for InputList {
// ..Default::default()
// };
let ans: InteractMode = if multi {
let answer: InteractMode = if multi {
let multi_select = MultiSelect::new(); //::with_theme(&theme);
InteractMode::Multi(
@ -179,7 +179,7 @@ impl Command for InputList {
)
};
Ok(match ans {
Ok(match answer {
InteractMode::Multi(res) => {
if index {
match res {

View File

@ -66,7 +66,7 @@ fn main() {
println!("first: {}", array.first().unwrap());
// Add a value
array.push(Value::String("tak".to_string()));
array.push(Value::String("baz".to_string()));
}
// Encode to Hjson

View File

@ -473,7 +473,7 @@ pub enum ShellError {
span: Span,
},
/// An error happened while tryin to create a range.
/// An error happened while trying to create a range.
///
/// This can happen in various unexpected situations, for example if the range would loop forever (as would be the case with a 0-increment).
///

View File

@ -335,7 +335,7 @@ fn const_captures_in_closures_work() {
assert_eq!(actual.out, "hello world");
}
#[ignore = "TODO: Need to fix `overlay hide` to hide the constants brough by `overlay use`"]
#[ignore = "TODO: Need to fix `overlay hide` to hide the constants brought by `overlay use`"]
#[test]
fn complex_const_overlay_use_hide() {
let inp = &[MODULE_SETUP, "overlay use spam", "$X"];

View File

@ -1,10 +1,12 @@
[files]
extend-exclude = ["crates/nu-command/tests/commands/table.rs", "*.tsv", "*.json", "*.txt"]
extend-exclude = ["crates/nu-command/tests/commands/table.rs", "*.tsv", "*.json", "*.txt", "tests/fixtures/formats/*"]
[default.extend-words]
# Ignore false-positives
nd = "nd"
pn = "pn"
fo = "fo"
ful = "ful"
ons = "ons"
ba = "ba"
Plasticos = "Plasticos"