Skip to content

Commit 4f397fb

Browse files
committed
Minor change: converting procedure to package specification
1 parent c62172e commit 4f397fb

File tree

1 file changed

+2
-4
lines changed
  • content/courses/advanced-ada/parts/data_types

1 file changed

+2
-4
lines changed

content/courses/advanced-ada/parts/data_types/types.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,9 +1537,9 @@ a real value, we're indirectly using a universal real type. If we declare
15371537
another named number using an expression, the computation is performed based on
15381538
the universal types of the elements of that expression:
15391539

1540-
.. code:: ada run_button project=Courses.Advanced_Ada.Data_Types.Types.Universal_And_Root_Types.Universal_Real_Integer
1540+
.. code:: ada compile_button project=Courses.Advanced_Ada.Data_Types.Types.Universal_And_Root_Types.Universal_Real_Integer
15411541

1542-
procedure Show_Universal_Real_Integer is
1542+
package Show_Universal_Real_Integer is
15431543

15441544
Pi : constant := 3.1415926535;
15451545
-- ^^^^^^^^^^^^
@@ -1559,8 +1559,6 @@ the universal types of the elements of that expression:
15591559
-- operation on
15601560
-- universal integer type
15611561

1562-
begin
1563-
null;
15641562
end Show_Universal_Real_Integer;
15651563

15661564
In this example, the expression :ada:`Pi * 2.0` is computed using universal

0 commit comments

Comments
 (0)