Skip to content

Commit 1c8010b

Browse files
Convert incorrectly formatted error messages
1 parent 04411d1 commit 1c8010b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

courses/ada_essentials/060_record_types/06-variant_records.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,15 @@ Immutable Variant Record Example
9494
9595
* :ada:`Pat.Pubs := 3;` would generate a compiler warning because compiler knows :ada:`Pat` is a :ada:`Student`
9696

97-
* ``warning: Constraint_Error will be raised at run time``
97+
.. code:: error
98+
99+
warning: Constraint_Error will be raised at run time
98100
99101
* :ada:`Do_Something (Pat);` generates a run-time error, because only at runtime is the discriminant for :ada:`Param` known
100102

101-
* ``raised CONSTRAINT_ERROR : discriminant check failed``
103+
.. code:: error
104+
105+
raised CONSTRAINT_ERROR : discriminant check failed
102106
103107
* :ada:`Pat := Sam;` would be a compiler warning because the constraints do not match
104108

0 commit comments

Comments
 (0)