Skip to content

Commit 8454c19

Browse files
authored
changed IDs
1 parent bf23e25 commit 8454c19

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/coding-guidelines/types-and-traits.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Types and Traits
77
================
88

99
.. guideline:: Use strong types to differentiate between logically distinct values
10-
:id: gui_xztNdXA2oFNB
10+
:id: gui_xztNdXA2oFNC
1111
:category: advisory
1212
:status: draft
1313
:release: 1.85.0;1.85.1
@@ -27,7 +27,7 @@ Types and Traits
2727
* You need to establish new invariants
2828

2929
.. rationale::
30-
:id: rat_kYiIiW8R2qD1
30+
:id: rat_kYiIiW8R2qD2
3131
:status: draft
3232

3333
This rule ensures that parameters and variables convey intent directly through the type system to avoid accidental misuse of values with identical primitives but different semantics.
@@ -49,7 +49,7 @@ Types and Traits
4949
Statically distinct types act as strong API contracts that can evolve independently from their underlying representations.
5050

5151
.. non_compliant_example::
52-
:id: non_compl_ex_PO5TyFsRTlWv
52+
:id: non_compl_ex_PO5TyFsRTlWw
5353
:status: draft
5454

5555
This noncompliant example uses primitive types directly, leading to potential confusion between ``distance`` and ``time``.
@@ -70,7 +70,7 @@ Types and Traits
7070
}
7171
7272
.. non_compliant_example::
73-
:id: non_compl_ex_PO5TyFsRTlWu
73+
:id: non_compl_ex_PO5TyFsRTlWv
7474
:status: draft
7575

7676
This noncompliant example uses aliases instead of distinct types.
@@ -99,7 +99,7 @@ Types and Traits
9999
}
100100
101101
.. compliant_example::
102-
:id: compl_ex_WTe7GoPu5Ez0
102+
:id: compl_ex_WTe7GoPu5Ez1
103103
:status: draft
104104

105105
This compliant example uses newtypes to create distinct types for ``Meters``, ``Seconds``, and ``MetersPerSecond``.

0 commit comments

Comments
 (0)