From 6c36bd822cd36ea871befb14c3a448bf42c7e366 Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Sun, 17 Nov 2024 19:17:35 +0100 Subject: [PATCH] Fix doc and code comment typos (#14366) # User-Facing Changes * Fixes `polars value-counts --column` help text typo * Fixes `polars agg-groups` help text typo --- crates/nu-command/src/system/run_external.rs | 2 +- .../src/dataframe/command/aggregation/agg_groups.rs | 2 +- .../src/dataframe/command/aggregation/value_counts.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nu-command/src/system/run_external.rs b/crates/nu-command/src/system/run_external.rs index 67b848915d..604278c676 100644 --- a/crates/nu-command/src/system/run_external.rs +++ b/crates/nu-command/src/system/run_external.rs @@ -76,7 +76,7 @@ impl Command for External { // believe the user wants to use the windows association to run the script. The only // easy way to do this is to run cmd.exe with the script as an argument. let potential_nuscript_in_windows = if cfg!(windows) { - // let's make sure it's a .nu scrtipt + // let's make sure it's a .nu script if let Some(executable) = which(&expanded_name, "", cwd.as_ref()) { let ext = executable .extension() diff --git a/crates/nu_plugin_polars/src/dataframe/command/aggregation/agg_groups.rs b/crates/nu_plugin_polars/src/dataframe/command/aggregation/agg_groups.rs index ae12239800..a8d58bd6f0 100644 --- a/crates/nu_plugin_polars/src/dataframe/command/aggregation/agg_groups.rs +++ b/crates/nu_plugin_polars/src/dataframe/command/aggregation/agg_groups.rs @@ -34,7 +34,7 @@ impl PluginCommand for ExprAggGroups { fn examples(&self) -> Vec { vec![Example { - description: "Get the groiup index of the group by operations.", + description: "Get the group index of the group by operations.", example: r#"[[group value]; [one 94] [one 95] [one 96] [two 97] [two 98] [two 99]] | polars into-df | polars group-by group diff --git a/crates/nu_plugin_polars/src/dataframe/command/aggregation/value_counts.rs b/crates/nu_plugin_polars/src/dataframe/command/aggregation/value_counts.rs index 064e308e80..57f7f3381a 100644 --- a/crates/nu_plugin_polars/src/dataframe/command/aggregation/value_counts.rs +++ b/crates/nu_plugin_polars/src/dataframe/command/aggregation/value_counts.rs @@ -28,7 +28,7 @@ impl PluginCommand for ValueCount { .named( "column", SyntaxShape::String, - "Provide a custom name for the coutn column", + "Provide a custom name for the count column", Some('c'), ) .switch("sort", "Whether or not values should be sorted", Some('s'))