Skip to content

Commit

Permalink
Tweak wording about invariants
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Sep 4, 2024
1 parent 1c23ed2 commit 99c1086
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ guarantees of any software component. It is based on three concepts:
violated. Otherwise, a postcondition violation indicates
a bug in the callee.

- **Invariants**: conditions that always hold at some point in the
- **Invariants**: conditions that always hold at one or more specific
points in the
code. The most common kind of invariants are **class invariants**,
which hold at any point where an instance can be inspected from
outside the class, but other invariant checks (especially loop
invariants) are also useful.
which hold wherever it is valid to inspect an instance from
outside the class, but other invariantss (especially [loop
invariants](https://en.wikipedia.org/wiki/Loop_invariant)) are also useful.

This library provides macros for checking preconditions
(`ADOBE_PRECONDITION`) and invariants (`ADOBE_INVARIANT`).
Expand Down

0 comments on commit 99c1086

Please sign in to comment.