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 20, 2024
1 parent de435e1 commit 5c5c39d
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 5c5c39d

Please sign in to comment.