Skip to content

Commit

Permalink
doc: warning added
Browse files Browse the repository at this point in the history
This is a warning / clarification, so that no one is accidentally misusing the library.
  • Loading branch information
Red44 committed Apr 7, 2024
1 parent 09827eb commit 550f1c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use std::time::{Duration, SystemTime};
impl Ulid {
/// Creates a new Ulid with the current time (UTC)
///
/// Using this function to generate Ulids will not guarantee monotonic sort order.
/// See [ulid::Generator] for a monotonic sort order.
/// # Example
/// ```rust
/// use ulid::Ulid;
Expand Down

0 comments on commit 550f1c3

Please sign in to comment.