Skip to content

Commit 4759385

Browse files
committed
poly: use the :ada:`` role where it was missing
1 parent 7eb74c2 commit 4759385

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

courses/fundamentals_of_ada/180_polymorphism/02-classes_of_types.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Classes
77
----------
88

99
* In Ada, a Class denotes an inheritance subtree
10-
* Class of `Root` is the class of `Root` and all its children
11-
* Type :ada:`Root'Class` can designate any object typed after type of class of `Root`
10+
* Class of :ada:`Root` is the class of :ada:`Root` and all its children
11+
* Type :ada:`Root'Class` can designate any object typed after type of class of :ada:`Root`
1212

1313
.. code:: Ada
1414
@@ -21,10 +21,10 @@ Classes
2121
-- Child2'Class = {Child2}
2222
-- Grand_Child1'Class = {Grand_Child1}
2323
24-
* Objects of type :ada:`Root'Class` have at least the properties of `Root`
24+
* Objects of type :ada:`Root'Class` have at least the properties of :ada:`Root`
2525

26-
- Components of `Root`
27-
- Primitives of `Root`
26+
- Components of :ada:`Root`
27+
- Primitives of :ada:`Root`
2828

2929
-----------------
3030
Indefinite Type
@@ -62,7 +62,7 @@ Testing the Type of an Object
6262
-------------------------------
6363

6464
* The tag of an object denotes its type
65-
* It can be accessed through the `'Tag` attribute
65+
* It can be accessed through the :ada:`'Tag` attribute
6666
* Applies to both objects and types
6767
* Membership operator is available to check the type against a hierarchy
6868

@@ -139,7 +139,7 @@ Abstract Types Ada Vs C++
139139
Relation to Primitives
140140
------------------------
141141

142-
Warning: Subprograms with parameter of type `Root'Class` are not primitives of `Root`
142+
.. warning:: Subprograms with parameter of type :ada:`Root'Class` are not primitives of :ada:`Root`
143143

144144
.. code:: Ada
145145

courses/fundamentals_of_ada/180_polymorphism/03-dispatching_and_redispatching.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Dispatching and Redispatching
66
Calls on Class-Wide Types (1/3)
77
---------------------------------
88

9-
* Any subprogram expecting a `Root` object can be called with a :ada:`Animal'Class` object
9+
* Any subprogram expecting a :ada:`Root` object can be called with a :ada:`Animal'Class` object
1010

1111
.. code:: Ada
1212

0 commit comments

Comments
 (0)