Skip to content

Commit 976c1f4

Browse files
committed
Adding a short description to state accessor is illegal for private type
1 parent be12884 commit 976c1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

courses/fundamentals_of_ada/110_private_types/05-when_to_use_or_avoid_private_types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ When to Avoid Private Types
4646
type Vector is array (Positive range <>) of Float;
4747
V : Vector (1 .. 3);
4848
...
49-
V (1) := Alpha;
49+
V (1) := Alpha; -- Illegal since Vector is private
5050

0 commit comments

Comments
 (0)