File 0131-Fix-inconsistent-arith-number-opaque-type-in-documen.patch of Package erlang
From d5ac7ca55e52dfca2d08b7ec73e8d8f259d447a7 Mon Sep 17 00:00:00 2001
From: Andreas Hasselberg <andreas.hasselberg@gmail.com>
Date: Tue, 21 Oct 2025 09:22:05 +0200
Subject: [PATCH 1/2] Fix inconsistent arith:number() opaque type in
documentation examples
---
system/doc/reference_manual/documentation.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/system/doc/reference_manual/documentation.md b/system/doc/reference_manual/documentation.md
index 99e31282cc..adcaaacdc7 100644
--- a/system/doc/reference_manual/documentation.md
+++ b/system/doc/reference_manual/documentation.md
@@ -191,11 +191,11 @@ Adds two numbers.
### Example:
```
-1> arith:add(arith:number(1), arith:number(2)). {number, 3}
+1> arith:add(arith:number(1), arith:number(2)). {arith, 3}
```
""".
-spec add(number(), number()) -> number().
-add({number, One}, {number, Two}) -> {number, One + Two}.
+add({arith, One}, {arith, Two}) -> {arith, One + Two}.
````
### Doc metadata
--
2.51.0