Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80994a2

Browse files
author
Nashwan Azhari
committed
fix: Timestamp::from_gregorian deprecation note
Signed-off-by: Nashwan Azhari <[email protected]>
1 parent 90c5be8 commit 80994a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/timestamp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl Timestamp {
167167
impl Timestamp {
168168
#[deprecated(
169169
since = "1.10.0",
170-
note = "use `Timestamp::from_gregorian(ticks, counter)`"
170+
note = "use `Timestamp::from_gregorian_time(ticks, counter)`"
171171
)]
172172
pub const fn from_rfc4122(ticks: u64, counter: u16) -> Self {
173173
Timestamp::from_gregorian_time(ticks, counter)
@@ -188,7 +188,7 @@ impl Timestamp {
188188

189189
#[deprecated(
190190
since = "1.23.0",
191-
note = "use `Timestamp::from_gregorian(ticks, counter)`"
191+
note = "use `Timestamp::from_gregorian_time(ticks, counter)`"
192192
)]
193193
pub const fn from_gregorian(ticks: u64, counter: u16) -> Self {
194194
Timestamp::from_gregorian_time(ticks, counter)

0 commit comments

Comments
 (0)