Skip to content

Commit fe8ec1c

Browse files
committed
[#1807] Add entry in docs/user/features
1 parent e17243d commit fe8ec1c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/user/features.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,20 @@ impl Foo for S {
166166
}
167167
```
168168

169+
- Apply [De Morgan's law](https://en.wikipedia.org/wiki/De_Morgan%27s_laws)
170+
171+
```rust
172+
// before:
173+
fn example(x: bool) -> bool {
174+
!x || !x
175+
}
176+
177+
// after:
178+
fn example(x: bool) -> bool {
179+
!(x && !x)
180+
}
181+
```
182+
169183
- Import path
170184

171185
```rust

0 commit comments

Comments
 (0)