From 550f1c32d3908be7b14a15c82ff2c1375b7d77be Mon Sep 17 00:00:00 2001 From: ReD Date: Sun, 7 Apr 2024 20:20:37 +0200 Subject: [PATCH] doc: warning added This is a warning / clarification, so that no one is accidentally misusing the library. --- src/time.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/time.rs b/src/time.rs index 0515baa..0c6a7c1 100644 --- a/src/time.rs +++ b/src/time.rs @@ -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;