Merge pull request #4274 from cakebaker/sum_fix_output_of_about_string

sum, unexpand: fix output of about string
This commit is contained in:
Sylvestre Ledru
2023-01-11 16:33:39 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ use uucore::{format_usage, show};
static NAME: &str = "sum";
static USAGE: &str = "{} [OPTION]... [FILE]...";
static ABOUT: &str = r#"Checksum and count the blocks in a file.
With no FILE, or when FILE is -, read standard input."#;
static ABOUT: &str = "Checksum and count the blocks in a file.\n\n\
With no FILE, or when FILE is -, read standard input.";
// This can be replaced with usize::div_ceil once it is stabilized.
// This implementation approach is optimized for when `b` is a constant,
+2 -2
View File
@@ -23,8 +23,8 @@ use uucore::{crash, crash_if_err, format_usage};
static NAME: &str = "unexpand";
static USAGE: &str = "{} [OPTION]... [FILE]...";
static ABOUT: &str = r#"Convert blanks in each FILE to tabs, writing to standard output.
With no FILE, or when FILE is -, read standard input."#;
static ABOUT: &str = "Convert blanks in each FILE to tabs, writing to standard output.\n\n\
With no FILE, or when FILE is -, read standard input.";
const DEFAULT_TABSTOP: usize = 8;