From baa50ec9b29e8e73aac7f9d316d37adf674b133d Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Mon, 11 Sep 2023 12:37:06 +0200 Subject: [PATCH] Update `crates-ci/typos` and fix new typos (#10313) Supersedes #10309 --- .github/workflows/typos.yml | 2 +- crates/nu-command/src/conversions/into/duration.rs | 2 +- crates/nu-table/src/common.rs | 2 +- crates/nu-table/src/table_theme.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 4eb7207ab..00d20cd0a 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -10,6 +10,6 @@ jobs: uses: actions/checkout@v4 - name: Check spelling - uses: crate-ci/typos@v1.0.4 + uses: crate-ci/typos@v1.16.11 with: config: ./.github/.typos.toml diff --git a/crates/nu-command/src/conversions/into/duration.rs b/crates/nu-command/src/conversions/into/duration.rs index 336e3fdf1..fdae0f725 100644 --- a/crates/nu-command/src/conversions/into/duration.rs +++ b/crates/nu-command/src/conversions/into/duration.rs @@ -120,7 +120,7 @@ impl Command for SubCommand { result: Some(Value::duration(1_234_567, span)), }, Example { - description: "Convert a number of an arbitraty unit to duration", + description: "Convert a number of an arbitrary unit to duration", example: "1_234 | into duration --unit ms", result: Some(Value::duration(1_234 * 1_000_000, span)), }, diff --git a/crates/nu-table/src/common.rs b/crates/nu-table/src/common.rs index eac5dab57..f4749f339 100644 --- a/crates/nu-table/src/common.rs +++ b/crates/nu-table/src/common.rs @@ -160,7 +160,7 @@ pub fn load_theme_from_config(config: &Config) -> TableTheme { "psql" => TableTheme::psql(), "markdown" => TableTheme::markdown(), "dots" => TableTheme::dots(), - "restructured" => TableTheme::resturctured(), + "restructured" => TableTheme::restructured(), "ascii_rounded" => TableTheme::ascii_rounded(), "basic_compact" => TableTheme::basic_compact(), _ => TableTheme::rounded(), diff --git a/crates/nu-table/src/table_theme.rs b/crates/nu-table/src/table_theme.rs index efe4aa025..4ae5a9e62 100644 --- a/crates/nu-table/src/table_theme.rs +++ b/crates/nu-table/src/table_theme.rs @@ -63,7 +63,7 @@ impl TableTheme { } } - pub fn resturctured() -> TableTheme { + pub fn restructured() -> TableTheme { Self { theme: Style::re_structured_text().into(), full_theme: Style::re_structured_text().into(),