Update fill.rs to fix last example given with help (#13993)

Original stated it filled on the left to a width of 5 while showing the
command and output to fill on both sides to a width of 10. Changed
wording of description to match effect of example and displayed result.
This commit is contained in:
LordLightSpeed 2024-10-03 23:04:36 +01:00 committed by GitHub
parent e3fd4d3f81
commit e0bc85d0dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,7 @@ impl Command for Fill {
}, },
Example { Example {
description: description:
"Fill a filesize on the left side to a width of 5 with the character '0'", "Fill a filesize on both sides to a width of 10 with the character '0'",
example: "1kib | fill --alignment middle --character '0' --width 10", example: "1kib | fill --alignment middle --character '0' --width 10",
result: Some(Value::string("0001024000", Span::test_data())), result: Some(Value::string("0001024000", Span::test_data())),
}, },