Skip to content

Commit

Permalink
Fix #5: Ada.Text_IO. missing in a template
Browse files Browse the repository at this point in the history
- fix template to use Ada.Text_IO.Put_Line
  • Loading branch information
stcarrez committed May 27, 2023
1 parent 3c2add0 commit 3b66084
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/body-io.adb
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ package body ${NAME}_IO is
Saved_Tok_Line2 := new String (1 .. i - 1);
Saved_Tok_Line2 (1 .. i - 1) := Temp_Line (1 .. i - 1);
Line_Number_Of_Saved_Tok_Line2 := Line_Number_Of_Saved_Tok_Line1 + 1;
Put_Line ("Input line "
& Integer'Image ( Line_Number_Of_Saved_Tok_Line2 )
& "has more than "
& Integer'Image ( max_size )
& " characters, ... truncated." );
Ada.Text_IO.Put_Line ("Input line "
& Integer'Image ( Line_Number_Of_Saved_Tok_Line2 )
& "has more than "
& Integer'Image ( max_size )
& " characters, ... truncated." );
%end
exception
when Ada.Text_IO.End_Error =>
Expand Down

0 comments on commit 3b66084

Please sign in to comment.