forked from extern/nushell
remove unnecessary rows in into datetime --list
(#8243)
Below is the result of `into datetime --list | uniq -d`. ``` ╭───┬───────────────┬─────────┬───────────────────────────────────────╮ │ # │ Specification │ Example │ Description │ ├───┼───────────────┼─────────┼───────────────────────────────────────┤ │ 0 │ %Y │ 2023 │ The full proleptic Gregorian year, │ │ │ │ │ zero-padded to 4 digits. │ │ 1 │ %C │ 20 │ The proleptic Gregorian year divided │ │ │ │ │ by 100, zero-padded to 2 digits. │ ╰───┴───────────────┴─────────┴───────────────────────────────────────╯ ``` It's supposed to be an empty table, but it has two rows. I removed the duplicates. # User-Facing Changes `into datetime --list` will print out a correct table.
This commit is contained in:
parent
c358400351
commit
ba5258d716
@ -198,14 +198,6 @@ pub(crate) fn generate_strftime_list(head: Span, show_parse_only_formats: bool)
|
|||||||
}
|
}
|
||||||
|
|
||||||
let specifications = vec![
|
let specifications = vec![
|
||||||
FormatSpecification {
|
|
||||||
spec: "%Y",
|
|
||||||
description: "The full proleptic Gregorian year, zero-padded to 4 digits.",
|
|
||||||
},
|
|
||||||
FormatSpecification {
|
|
||||||
spec: "%C",
|
|
||||||
description: "The proleptic Gregorian year divided by 100, zero-padded to 2 digits.",
|
|
||||||
},
|
|
||||||
FormatSpecification {
|
FormatSpecification {
|
||||||
spec: "%Y",
|
spec: "%Y",
|
||||||
description: "The full proleptic Gregorian year, zero-padded to 4 digits.",
|
description: "The full proleptic Gregorian year, zero-padded to 4 digits.",
|
||||||
|
Loading…
Reference in New Issue
Block a user