Skip to content

Commit

Permalink
Update docs/STYLE_GUIDE.md
Browse files Browse the repository at this point in the history
Co-authored-by: Malte Kliemann <[email protected]>
  • Loading branch information
sea212 and maltekliemann authored Feb 7, 2024
1 parent 35b398f commit d595f0f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ duplicating documentation.
- If possible, test unreachable code and states thought to be impossible using
the following schema:

```rust
// In code logic
zeitgeist_primitives::unreachable_non_terminating!(condition, log_target, message)
```

```rust
// In test
#[test]
#[should_panic(expected = message)]
// Cause assertion
```
```rust
// In code logic
zeitgeist_primitives::unreachable_non_terminating!(condition, log_target, message)
```
```rust
// In test
#[test]
#[should_panic(expected = message)]
// Cause assertion
```

0 comments on commit d595f0f

Please sign in to comment.