Skip to content

Commit 0d8362b

Browse files
authored
Merge pull request #7887 from cakebaker/uptime_fix_typo_in_fn_name
uptime: fix typo (formated -> formatted)
2 parents 7d5cfbc + 781a48b commit 0d8362b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/uu/uptime/src/uptime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
55

6-
// spell-checker:ignore getloadavg behaviour loadavg uptime upsecs updays upmins uphours boottime nusers utmpxname gettime clockid formated
6+
// spell-checker:ignore getloadavg behaviour loadavg uptime upsecs updays upmins uphours boottime nusers utmpxname gettime clockid
77

88
use chrono::{Local, TimeZone, Utc};
99
use clap::ArgMatches;
@@ -296,6 +296,6 @@ fn print_time() {
296296
}
297297

298298
fn print_uptime(boot_time: Option<time_t>) -> UResult<()> {
299-
print!("up {}, ", get_formated_uptime(boot_time)?);
299+
print!("up {}, ", get_formatted_uptime(boot_time)?);
300300
Ok(())
301301
}

src/uucore/src/lib/features/uptime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
55

6-
// spell-checker:ignore gettime BOOTTIME clockid boottime formated nusers loadavg getloadavg
6+
// spell-checker:ignore gettime BOOTTIME clockid boottime nusers loadavg getloadavg
77

88
//! Provides functions to get system uptime, number of users and load average.
99
@@ -165,7 +165,7 @@ pub fn get_uptime(_boot_time: Option<time_t>) -> UResult<i64> {
165165
///
166166
/// Returns a UResult with the uptime in a human-readable format(e.g. "1 day, 3:45") if successful, otherwise an UptimeError.
167167
#[inline]
168-
pub fn get_formated_uptime(boot_time: Option<time_t>) -> UResult<String> {
168+
pub fn get_formatted_uptime(boot_time: Option<time_t>) -> UResult<String> {
169169
let up_secs = get_uptime(boot_time)?;
170170

171171
if up_secs < 0 {

0 commit comments

Comments
 (0)