Fix some examples and regenerate docs, should fix: #4455 (#4639)

This commit is contained in:
Justin Ma
2022-02-25 21:14:15 +08:00
committed by GitHub
parent 2126bef052
commit e6570b41ca
7 changed files with 25 additions and 4 deletions

View File

@ -59,7 +59,7 @@ impl Command for Compact {
}),
},
Example {
description: "Filter out all instances of nothing from a list (Returns [1,2]",
description: "Filter out all instances of nothing from a list (Returns [1,2])",
example: r#"echo [1, $nothing, 2] | compact"#,
result: Some(Value::List {
vals: vec![Value::test_int(1), Value::test_int(2)],

View File

@ -66,7 +66,7 @@ impl Command for Base64 {
},
Example {
description: "Base64 encode a string with the binhex character set",
example: "echo 'username:password' | hash base64 --character_set binhex --encode",
example: "echo 'username:password' | hash base64 --character-set binhex --encode",
result: Some(Value::string("F@0NEPjJD97kE'&bEhFZEP3", Span::test_data())),
},
Example {