From eb05e66d0b4ba07f0e972ed09bbff17eec60bd22 Mon Sep 17 00:00:00 2001 From: Ben Sully Date: Tue, 10 Dec 2024 14:23:53 +0000 Subject: [PATCH] fix: add explicit link to chrono method We don't actually import chrono so intra-doc links don't work. --- crates/augurs-prophet/src/features.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/augurs-prophet/src/features.rs b/crates/augurs-prophet/src/features.rs index 96ec532..d072d71 100644 --- a/crates/augurs-prophet/src/features.rs +++ b/crates/augurs-prophet/src/features.rs @@ -76,7 +76,7 @@ impl HolidayOccurrence { /// in a timezone represented by the `utc_offset_seconds`. /// /// The UTC offset can be calculated using, for example, - /// [`chrono::FixedOffset::local_minus_utc`]. Alternatively + /// [`chrono::FixedOffset::local_minus_utc`](lmu). Alternatively /// it's the number of seconds to add to convert from the /// local time to UTC, so UTC+1 is represented by `3600` /// and UTC-5 by `-18000`. @@ -91,6 +91,7 @@ impl HolidayOccurrence { /// end times, e.g. by calculating them using [`chrono`]. /// /// [`chrono`]: https://docs.rs/chrono/latest/chrono + /// [lmu]: https://docs.rs/chrono/latest/chrono/struct.FixedOffset.html#method.local_minus_utc pub fn for_day_in_tz(day: TimestampSeconds, utc_offset_seconds: i32) -> Self { let day = floor_day(day, utc_offset_seconds); Self {