mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Fixed typos in example programs.
This commit is contained in:
@@ -12,4 +12,4 @@ procedure Max_Array is
|
||||
end Max_Array;
|
||||
begin
|
||||
null;
|
||||
end Max_Array;
|
||||
end Max_Array;
|
||||
|
||||
@@ -14,4 +14,4 @@ procedure Sum is
|
||||
end Sum;
|
||||
begin
|
||||
null;
|
||||
end Sum;
|
||||
end Sum;
|
||||
|
||||
@@ -9,9 +9,9 @@ begin
|
||||
return num**2;
|
||||
end Square;
|
||||
|
||||
-- Ada 2012 also provides Expressiion Functions
|
||||
-- Ada 2012 also provides Expression Functions
|
||||
-- (http://www.ada-auth.org/standards/12rm/html/RM-6-8.html)
|
||||
-- as a short hand for functions whose body consists of a
|
||||
-- single return statement. Hhowever they cannot be used as a
|
||||
-- single return statement. However they cannot be used as a
|
||||
-- complication unit.
|
||||
-- function Square(num : Integer) return Integer is (num**2);
|
||||
|
||||
Reference in New Issue
Block a user