1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

refactor/pr: polish spelling

This commit is contained in:
Michael Debertol 2021-05-31 22:38:53 +02:00
parent 8de42ed18e
commit 41878f1bf4
2 changed files with 26 additions and 22 deletions

View file

@ -1,3 +1,5 @@
// spell-checker:ignore (ToDO) Sdivide
use crate::common::util::*;
use chrono::offset::Local;
use chrono::DateTime;
@ -11,8 +13,8 @@ fn file_last_modified_time(ucmd: &UCommand, path: &str) -> String {
return i
.modified()
.map(|x| {
let datetime: DateTime<Local> = x.into();
datetime.format("%b %d %H:%M %Y").to_string()
let date_time: DateTime<Local> = x.into();
date_time.format("%b %d %H:%M %Y").to_string()
})
.unwrap_or(String::new());
})