Skip to content

Commit 550f1c3

Browse files
authored
doc: warning added
This is a warning / clarification, so that no one is accidentally misusing the library.
1 parent 09827eb commit 550f1c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use std::time::{Duration, SystemTime};
44
impl Ulid {
55
/// Creates a new Ulid with the current time (UTC)
66
///
7+
/// Using this function to generate Ulids will not guarantee monotonic sort order.
8+
/// See [ulid::Generator] for a monotonic sort order.
79
/// # Example
810
/// ```rust
911
/// use ulid::Ulid;

0 commit comments

Comments
 (0)