From 29e2c4b2dbeb576aa5cccab94aebaf73c922c1e4 Mon Sep 17 00:00:00 2001 From: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com> Date: Mon, 22 Jan 2024 02:09:09 +0000 Subject: [PATCH] helper: fix doc test --- helper/src/thread.rs | 2 +- helper/src/time.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helper/src/thread.rs b/helper/src/thread.rs index ed1ea29..75088cd 100644 --- a/helper/src/thread.rs +++ b/helper/src/thread.rs @@ -17,7 +17,7 @@ const NON_ZERO_USIZE_1: NonZeroUsize = match NonZeroUsize::new(1) { /// Get the total amount of system threads. /// /// ```rust -/// # use helper::thread::*; +/// # use cuprate_helper::thread::*; /// assert!(threads().get() >= 1); /// ``` pub fn threads() -> NonZeroUsize { diff --git a/helper/src/time.rs b/helper/src/time.rs index 390fe6c..7bc155f 100644 --- a/helper/src/time.rs +++ b/helper/src/time.rs @@ -10,7 +10,7 @@ use std::time::{SystemTime, UNIX_EPOCH}; /// Returns the current system time as a UNIX timestamp. /// /// ```rust -/// # use helper::time::*; +/// # use cuprate_helper::time::*; /// assert!(current_unix_timestamp() > 0); /// ``` /// @@ -34,7 +34,7 @@ pub fn current_unix_timestamp() -> u64 { /// The output is guaranteed to be in the range of `0..=86399`. /// /// ```rust -/// # use helper::time::*; +/// # use cuprate_helper::time::*; /// // October 20th 2023 - 10:18:30 PM /// const TIME: u64 = 1697840310; /// @@ -58,7 +58,7 @@ pub const fn unix_clock(seconds_after_unix_epoch: u64) -> u32 { /// see [`secs_to_clock`] for clock-like behavior that wraps around on `24` /// /// ```rust -/// # use helper::time::*; +/// # use cuprate_helper::time::*; /// // 59 seconds. /// assert_eq!(secs_to_hms(59), (0, 0, 59)); /// @@ -99,7 +99,7 @@ pub const fn secs_to_hms(seconds: u64) -> (u64, u8, u8) { /// - The hours returned is guaranteed to be `0..=23` /// /// ```rust -/// # use helper::time::*; +/// # use cuprate_helper::time::*; /// // 59 seconds. /// assert_eq!(secs_to_clock(59), (0, 0, 59)); ///