Skip to content

Commit

Permalink
Adding default value for the discriminant
Browse files Browse the repository at this point in the history
  • Loading branch information
gusthoff committed Oct 13, 2024
1 parent c7516c0 commit 300ea66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/courses/advanced-ada/parts/data_types/records.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2951,7 +2951,7 @@ statement. For example:
V : Float;
end record;

type Device (State : Device_State) is
type Device (State : Device_State := Off) is
record
case State is
when Off =>
Expand Down

0 comments on commit 300ea66

Please sign in to comment.