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:
parent
8de42ed18e
commit
41878f1bf4
2 changed files with 26 additions and 22 deletions
|
@ -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());
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue