Skip to content

Commit

Permalink
Update Ada example (leachim6#755)
Browse files Browse the repository at this point in the history
The Text_IO package was Ada 83. Afterwards it is Ada.Text_IO.
The package is 'opened' with 'use Ada.Text_IO'
Conforming to usual style.
  • Loading branch information
jquorning authored Jun 1, 2020
1 parent a94c5dd commit 02d24d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions a/ada.ada
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
with Text_IO;
with Ada.Text_IO;

procedure Hello_World is
begin
Text_IO.Put_line("Hello World");
end Hello_World;
use Ada.Text_IO;
begin
Put_line ("Hello World");
end Hello_World;

0 comments on commit 02d24d9

Please sign in to comment.