Further edits to help messages (#6913)

This commit is contained in:
Leon
2022-10-27 02:36:42 +10:00
committed by GitHub
parent 902aad6016
commit 5add5cbd12
34 changed files with 113 additions and 73 deletions

View File

@ -184,8 +184,8 @@ impl Command for Char {
result: Some(Value::test_string("\n")),
},
Example {
description: "Output prompt character, newline and a hamburger character",
example: r#"echo [(char prompt) (char newline) (char hamburger)] | str join"#,
description: "Output prompt character, newline and a hamburger menu character",
example: r#"(char prompt) + (char newline) + (char hamburger)"#,
result: Some(Value::test_string("\u{25b6}\n\u{2261}")),
},
Example {

View File

@ -41,7 +41,7 @@ documentation link at https://docs.rs/encoding_rs/0.8.28/encoding_rs/#statics"#
fn examples(&self) -> Vec<Example> {
vec![Example {
description: "Encode an UTF-8 string into Shift-JIS",
example: r#"echo "" | encode shift-jis"#,
example: r#""" | encode shift-jis"#,
result: Some(Value::Binary {
val: vec![
0x95, 0x89, 0x82, 0xaf, 0x82, 0xe9, 0x82, 0xc6, 0x92, 0x6d, 0x82, 0xc1, 0x82,

View File

@ -21,7 +21,7 @@ impl Command for StrCollect {
SyntaxShape::String,
"optional separator to use when creating string",
)
.category(Category::Strings)
.category(Category::Deprecated)
}
fn usage(&self) -> &str {