Skip to content

Commit

Permalink
Explanation had extra text...removing :/
Browse files Browse the repository at this point in the history
  • Loading branch information
dm-at-ada committed Dec 20, 2024
1 parent 910e317 commit 4ea76e4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Quiz
Type_Invariant => Check_Threshold
(Integer (Counter_T));
end Counter_Package;
package body Counter_Package is
function Increment_Helper (C : Counter_T)
return Counter_T is
Expand Down Expand Up @@ -238,7 +238,6 @@ Quiz

Type Invariants are only evaluated on entry into and exit from
externally visible subprograms. So :ada:`Check_Threshold` is called when
function Increment_Helper (C : Counter_T)
entering and exiting :ada:`Increment` - not :ada:`Increment_Helper`,
even though a new instance of :ada:`Counter_T` is created

0 comments on commit 4ea76e4

Please sign in to comment.