1
0
mirror of https://github.com/sharkdp/bat.git synced 2024-10-06 02:41:06 +01:00

Rename and add comment to the match block.

This commit is contained in:
Connor Kuehl 2018-05-07 12:14:34 -07:00 committed by David Peter
parent 438a9a99ed
commit 4e3c57cc7c

View File

@ -571,8 +571,8 @@ fn run() -> Result<()> {
let longest = match languages.iter()
.map(|s| s.name.len())
.max() {
Some(longlang) => longlang,
None => 32,
Some(length) => length,
None => 32, // Fallback width if they have no language definitions.
};
for lang in languages {