We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17243d commit fe8ec1cCopy full SHA for fe8ec1c
docs/user/features.md
@@ -166,6 +166,20 @@ impl Foo for S {
166
}
167
```
168
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
179
+ !(x && !x)
180
181
+```
182
183
- Import path
184
185
```rust
0 commit comments