File 3843-Fix-missing-comma-in-macro-and-minor-things-in-docum.patch of Package erlang

From 008cd23b6b001186358cc71ac155266a4a7efd41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20W=C4=85sowski?= <michal@erlang.org>
Date: Mon, 23 Feb 2026 11:20:41 +0100
Subject: [PATCH 3/3] Fix missing comma in macro and minor things in
 documentation

---
 lib/eunit/doc/guides/chapter.md | 8 ++++----
 lib/eunit/include/eunit.hrl     | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/eunit/doc/guides/chapter.md b/lib/eunit/doc/guides/chapter.md
index ca611692aa..f7b8788868 100644
--- a/lib/eunit/doc/guides/chapter.md
+++ b/lib/eunit/doc/guides/chapter.md
@@ -760,16 +760,16 @@ compiled with testing enabled.
 ### Macros for instrumentation
 
 To help with instrumenting, EUnit defines a macro that can introduce
-delays into the runtime.  This can help uncover subtle timing bugs
+delays into the runtime. This can help uncover subtle timing bugs
 that may not be evident when timing is perfect.
 
 If the macro `NODEBUG` is defined before the EUnit header file is included,
 these macros have no effect; see
 [Compilation control macros](chapter.md#Compilation_control_macros) for details.
 
-- **`randomDelay(Probability, Min, Max)`** This macro is used to cause
-non-deterministic latency into execution, which is useful for uncovering 
-race conditions and timing-dependent bugs during testing.
+- **`randomDelay(Probability, Min, Max)`** - This macro is used to cause
+  non-deterministic latency into execution, which is useful for uncovering
+  race conditions and timing-dependent bugs during testing.
 
 [](){: #Debugging_macros }
 
diff --git a/lib/eunit/include/eunit.hrl b/lib/eunit/include/eunit.hrl
index b0652b77cb..79a979eb35 100644
--- a/lib/eunit/include/eunit.hrl
+++ b/lib/eunit/include/eunit.hrl
@@ -246,7 +246,7 @@
             case rand:uniform() < (Prob) of
                 true ->
                     %% Convert seconds to milliseconds for timer:sleep
-                    Delay = (MinSec) + rand:uniform() * ((MaxSec) - (MinSec))
+                    Delay = (MinSec) + rand:uniform() * ((MaxSec) - (MinSec)),
                     timer:sleep(round(Delay * 1000));
                 false ->
                     ok
-- 
2.51.0

openSUSE Build Service is sponsored by