Skip to content

Commit 6a6b304

Browse files
author
Sonny Martin
committed
Fix class to function.
1 parent b9391c9 commit 6a6b304

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/invariant.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ std::string get_backtrace();
199199

200200
void report_exception_to_stderr(const invariant_failedt &);
201201

202-
/// This class is the backbone of all the invariant types. Every instance of an
203-
/// invariant is ultimately generated by this class, which is at times called
202+
/// This function is the backbone of all the invariant types. Every instance of an
203+
/// invariant is ultimately generated by this function template, which is at times called
204204
/// via a wrapper function.
205205
/// Takes a backtrace, gives it to the reason structure, then aborts, printing
206206
/// reason.what() (which therefore includes the backtrace).
@@ -236,7 +236,7 @@ CBMC_NORETURN
236236
abort();
237237
}
238238

239-
/// This is a wrapper class used by the macro 'INVARIANT(CONDITION, REASON)'
239+
/// This is a wrapper function used by the macro 'INVARIANT(CONDITION, REASON)'.
240240
/// It constructs an invariant_violatedt from reason and the
241241
/// backtrace, then aborts after printing the invariant's description.
242242
/// In future this may throw rather than aborting.
@@ -350,7 +350,7 @@ std::string assemble_diagnostics(Diagnostics &&... args)
350350
} // namespace detail
351351

352352

353-
/// This is a wrapper class, used by the macro 'INVARIANT_WITH_DIAGNOSTICS'
353+
/// This is a wrapper function, used by the macro 'INVARIANT_WITH_DIAGNOSTICS'
354354
template <typename... Diagnostics>
355355
CBMC_NORETURN void report_invariant_failure(
356356
const std::string &file,

0 commit comments

Comments
 (0)