Skip to content

Commit

Permalink
Fix typo in rustdoc of from_timestamp_nanos()
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoll authored and djc committed Jun 13, 2024
1 parent de2f1f4 commit 51c2d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datetime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ impl DateTime<Utc> {
Self::from_timestamp(secs, nsecs)
}

/// Creates a new [`DateTime<Utc>`] from the number of non-leap microseconds
/// Creates a new [`DateTime<Utc>`] from the number of non-leap nanoseconds
/// since January 1, 1970 0:00:00.000 UTC (aka "UNIX timestamp").
///
/// This is guaranteed to round-trip with [`timestamp_nanos`](DateTime::timestamp_nanos).
Expand Down

0 comments on commit 51c2d4b

Please sign in to comment.