From ef6b64a7c25f23736a0de77350cd9009ca8aba58 Mon Sep 17 00:00:00 2001 From: Peter Limkilde Svendsen Date: Sun, 2 Feb 2025 22:22:39 +0100 Subject: [PATCH] Doc and pub use for strptime --- src/header/time/mod.rs | 1 + src/header/time/strptime.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs index 88160bfecc..8c4baf2159 100644 --- a/src/header/time/mod.rs +++ b/src/header/time/mod.rs @@ -27,6 +27,7 @@ pub mod constants; mod strftime; mod strptime; +pub use strptime::strptime; const YEARS_PER_ERA: time_t = 400; const DAYS_PER_ERA: time_t = 146097; diff --git a/src/header/time/strptime.rs b/src/header/time/strptime.rs index 2e04a19c00..417d8bdb22 100644 --- a/src/header/time/strptime.rs +++ b/src/header/time/strptime.rs @@ -42,6 +42,7 @@ static LONG_MONTHS: [&str; 12] = [ "December", ]; +/// See . #[no_mangle] pub unsafe extern "C" fn strptime( buf: *const c_char,