Skip to content

Commit

Permalink
Fix incorrect doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
potatotech authored and BurntSushi committed Jan 18, 2025
1 parent 4531012 commit 6bec01c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/civil/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,10 @@ impl Date {
/// for more details. Note that ambiguous datetimes are handled in the same
/// way as `DateTime::to_zoned`.
///
/// In the common case of a time zone being represented as a name string,
/// like `Australia/Tasmania`, consider using [`Date::intz`]
/// instead.
///
/// # Errors
///
/// This returns an error if this date could not be represented as a
Expand Down
2 changes: 1 addition & 1 deletion src/civil/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ impl DateTime {
/// strategy, use [`TimeZone::to_ambiguous_zoned`].
///
/// In the common case of a time zone being represented as a name string,
/// like `Australia/Tasmania`, consider using [`DateTime::to_zoned`]
/// like `Australia/Tasmania`, consider using [`DateTime::intz`]
/// instead.
///
/// # Errors
Expand Down
4 changes: 4 additions & 0 deletions src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,10 @@ impl Timestamp {
/// time (i.e., a fold, typically DST ending) or no instants in time (i.e.,
/// a gap, typically DST starting).
///
/// In the common case of a time zone being represented as a name string,
/// like `Australia/Tasmania`, consider using [`Timestamp::intz`]
/// instead.
///
/// # Example
///
/// This example shows how to create a zoned value with a fixed time zone
Expand Down

0 comments on commit 6bec01c

Please sign in to comment.