Skip to content

Commit

Permalink
doc: correct function reference in Timestamp
Browse files Browse the repository at this point in the history
The documentation for the deprecated `as_duration` function in
`Timestamp` referenced a non-existent function `as_signed_duration`.
It should point to `as_jiff_duration` instead.

Closes #142
  • Loading branch information
msk authored and BurntSushi committed Nov 30, 2024
1 parent 1e39b60 commit d538cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ impl Timestamp {
/// ```
#[deprecated(
since = "0.1.5",
note = "use Timestamp::as_signed_duration instead"
note = "use Timestamp::as_jiff_duration instead"
)]
#[inline]
pub fn as_duration(self) -> (i8, core::time::Duration) {
Expand Down

0 comments on commit d538cd9

Please sign in to comment.