mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
GSL.assert: replace is by are (#908)
This commit is contained in:
parent
e3fe0c5b5e
commit
caa86ae38b
|
@ -19134,7 +19134,7 @@ Use `not_null<zstring>` for C-style strings that cannot be `nullptr`. ??? Do we
|
|||
// `Expect` in under control of some options (enforcement, error message, alternatives to terminate)
|
||||
* `Ensures` // postcondition assertion. Currently placed in function bodies. Later, should be moved to declarations.
|
||||
|
||||
These assertions is currently macros (yuck!) and must appear in function definitions (only)
|
||||
These assertions are currently macros (yuck!) and must appear in function definitions (only)
|
||||
pending standard commission decisions on contracts and assertion syntax.
|
||||
See [the contract proposal](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0380r1.pdf); using the attribute syntax,
|
||||
for example, `Expects(p!=nullptr)` will become `[[expects: p!=nullptr]]`.
|
||||
|
|
Loading…
Reference in New Issue
Block a user