Skip to content

Commit

Permalink
change UTC::now() documentation to "date and time"
Browse files Browse the repository at this point in the history
At least I was confused for a moment reading that it returns the current date, looking at it in the documentation.
  • Loading branch information
ModProg committed Feb 28, 2022
1 parent 895906a commit 22b19df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offset/utc.rs
Expand Up @@ -51,7 +51,7 @@ impl Utc {
DateTime::from_utc(naive, Utc)
}

/// Returns a `DateTime` which corresponds to the current date.
/// Returns a `DateTime` which corresponds to the current date and time.
#[cfg(all(target_arch = "wasm32", not(target_os = "wasi"), feature = "wasmbind"))]
pub fn now() -> DateTime<Utc> {
let now = js_sys::Date::new_0();
Expand Down

0 comments on commit 22b19df

Please sign in to comment.