Skip to content

Commit e5f4c8b

Browse files
committed
Fix non_exhaustive rule identifier fragment
When a fragment of a rule identifier matches a Rust identifier, we use an underscore rather than a dash as a separator. Let's do that here.
1 parent c1ecf00 commit e5f4c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/closure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ x = Example::A(57); // `x` can be modified while the closure is live
342342
c();
343343
```
344344

345-
r[type.closure.capture.precision.discriminants.non-exhaustive]
345+
r[type.closure.capture.precision.discriminants.non_exhaustive]
346346
If [the `#[non_exhaustive]` attribute][non_exhaustive] is applied to an enum defined in an external crate, it is considered to have multiple variants, even if only one variant is actually present.
347347

348348
[non_exhaustive]: attributes.type-system.non_exhaustive

0 commit comments

Comments
 (0)