From 8c487edf62c038cfa41dd687fdeb517f5afac6b0 Mon Sep 17 00:00:00 2001 From: Nicolas Kosinski Date: Thu, 16 Mar 2023 05:52:13 +0100 Subject: [PATCH] docs: Use capital letters for CSV and JSON acronyms (#8459) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Capital letters matter! 😉 Screenshot 2023-03-15 at 06 54 22 See https://github.com/nushell/nushell.github.io/pull/827/files that was created before this one. --- crates/nu-command/src/dataframe/eager/open.rs | 2 +- crates/nu-command/src/dataframe/eager/to_csv.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nu-command/src/dataframe/eager/open.rs b/crates/nu-command/src/dataframe/eager/open.rs index 319bb3aec3..b1a5564bbb 100644 --- a/crates/nu-command/src/dataframe/eager/open.rs +++ b/crates/nu-command/src/dataframe/eager/open.rs @@ -22,7 +22,7 @@ impl Command for OpenDataFrame { } fn usage(&self) -> &str { - "Opens csv, json, arrow, or parquet file to create dataframe." + "Opens CSV, JSON, arrow, or parquet file to create dataframe." } fn signature(&self) -> Signature { diff --git a/crates/nu-command/src/dataframe/eager/to_csv.rs b/crates/nu-command/src/dataframe/eager/to_csv.rs index 987d759dd8..fc08520190 100644 --- a/crates/nu-command/src/dataframe/eager/to_csv.rs +++ b/crates/nu-command/src/dataframe/eager/to_csv.rs @@ -19,7 +19,7 @@ impl Command for ToCSV { } fn usage(&self) -> &str { - "Saves dataframe to csv file." + "Saves dataframe to CSV file." } fn signature(&self) -> Signature { @@ -40,12 +40,12 @@ impl Command for ToCSV { fn examples(&self) -> Vec { vec![ Example { - description: "Saves dataframe to csv file", + description: "Saves dataframe to CSV file", example: "[[a b]; [1 2] [3 4]] | dfr into-df | dfr to-csv test.csv", result: None, }, Example { - description: "Saves dataframe to csv file using other delimiter", + description: "Saves dataframe to CSV file using other delimiter", example: "[[a b]; [1 2] [3 4]] | dfr into-df | dfr to-csv test.csv -d '|'", result: None, },