Skip to content

Commit cb8f2fc

Browse files
committed
Replace another use of on() with the newer if() syntax
1 parent c6b8f65 commit cb8f2fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3366-diagnostic-attribute-namespace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ There are alternatives for the naming of the `#[diagnostic]` namespace:
181181

182182
There are alternative designs for the proposed `on_unimplemented` attribute:
183183

184-
* The `on()` based filtering might be replaceable by placing the attribute on negative trait impls. This would turn a filter like
184+
* The `if()` based filtering might be replaceable by placing the attribute on negative trait impls. This would turn a filter like
185185
```rust
186186
#[diagnostic::on_unimplemented(
187187
on(Self = `String`, message = "Strings do not implement `IntoIterator` directly")

0 commit comments

Comments
 (0)