diff options
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/style.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/dev/style.md b/docs/dev/style.md index 9859f614820..21330948ba5 100644 --- a/docs/dev/style.md +++ b/docs/dev/style.md @@ -215,6 +215,11 @@ if idx >= len { **Rationale:** its useful to see the invariant relied upon by the rest of the function clearly spelled out. +## Assertions + +Assert liberally. +Prefer `stdx::assert_never!` to standard `assert!`. + ## Getters & Setters If a field can have any value without breaking invariants, make the field public. |
