Skip to content

Commit 04411d1

Browse files
Fix "color-red" that should be "error"
1 parent 75208d0 commit 04411d1

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

courses/ada_essentials/140_access_types/02-access_types.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ Access Type
2323
type Rec_Access_2 is access Rec_T;
2424
Rec_Ptr_2 : Rec_Access_2 := Rec_Access_2 (Rec_Ptr);
2525
26-
:color-red:`example.adb:6:32: error: target type must be general access type`
26+
.. code:: error
27+
:font-size: footnotesize
28+
29+
example.adb:6:32: error: target type must be general access type
2730
2831
.. note::
2932

courses/ada_essentials/143_general_access_types/03-accessibility_checks.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ Access Type Scoping Example
3939

4040
.. container:: source_include 143_general_access_types/examples/accessibility_checks/nesting_example.adb :code:Ada :number-lines:1
4141

42-
:color-red:`nesting_example.adb:12:23: error: non-local pointer cannot point to local object`
42+
.. code:: error
43+
:font-size: scriptsize
4344
44-
:color-red:`nesting_example.adb:17:39: error: cannot convert local pointer to non-local access type`
45+
example.adb:12:23: error: non-local pointer cannot point to local object
46+
example.adb:17:39: error: cannot convert local pointer to non-local access type
4547
4648
* To avoid having to face these issues, avoid nested access types
4749

@@ -62,7 +64,9 @@ Dynamic Accessibility Checks
6264

6365
.. container:: source_include 143_general_access_types/examples/accessibility_checks/dynamic_accessibility.adb :code:Ada :number-lines:4 :start-after:snippet_begin :end-before:snippet_end
6466

65-
:color-red:`raised PROGRAM_ERROR : dynamic_accessibility.adb:12 accessibility check failed`
67+
.. code:: error
68+
69+
raised PROGRAM_ERROR : dynamic_accessibility.adb:12 accessibility check failed
6670
6771
-------------------------------------
6872
Getting Around Accessibility Checks

0 commit comments

Comments
 (0)