From 6c1a655512b38f8d2d07f8c32ac7fe6310b1016e Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Mon, 14 Feb 2022 02:09:11 +0530 Subject: [PATCH] This commit removes empty line from USAGE string in src/uu/od/src/od.rs. (#3074) This change is needed to fix missing USAGE section for `od` in user docs. With reference to this issue https://github.com/uutils/coreutils/issues/2991, and missing USAGE section from `od docs` at https://uutils.github.io/coreutils-docs/user/utils/od.html, it was found that the USAGE for od app was starts with an empty line and uudoc only takes 1st line for using in USAGE section in docs. This resulted in empty line in usage section for `od` --- src/uu/od/src/od.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uu/od/src/od.rs b/src/uu/od/src/od.rs index 16abb20fc..3db1a00f3 100644 --- a/src/uu/od/src/od.rs +++ b/src/uu/od/src/od.rs @@ -51,8 +51,7 @@ use uucore::InvalidEncodingHandling; const PEEK_BUFFER_SIZE: usize = 4; // utf-8 can be 4 bytes static ABOUT: &str = "dump files in octal and other formats"; -static USAGE: &str = r#" - od [OPTION]... [--] [FILENAME]... +static USAGE: &str = r#"od [OPTION]... [--] [FILENAME]... od [-abcdDefFhHiIlLoOsxX] [FILENAME] [[+][0x]OFFSET[.][b]] od --traditional [OPTION]... [FILENAME] [[+][0x]OFFSET[.][b] [[+][0x]LABEL[.][b]]]"#;