mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-23 06:48:53 +01:00
Rename and add comment to the match block.
This commit is contained in:
parent
438a9a99ed
commit
4e3c57cc7c
@ -571,8 +571,8 @@ fn run() -> Result<()> {
|
|||||||
let longest = match languages.iter()
|
let longest = match languages.iter()
|
||||||
.map(|s| s.name.len())
|
.map(|s| s.name.len())
|
||||||
.max() {
|
.max() {
|
||||||
Some(longlang) => longlang,
|
Some(length) => length,
|
||||||
None => 32,
|
None => 32, // Fallback width if they have no language definitions.
|
||||||
};
|
};
|
||||||
|
|
||||||
for lang in languages {
|
for lang in languages {
|
||||||
|
Loading…
Reference in New Issue
Block a user