Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6e21e48

Browse files
Fix incorrect codeblock attributes in docs
1 parent 5f3002e commit 6e21e48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/typeck_results.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ pub struct TypeckResults<'tcx> {
165165
/// reading places that are mentioned in a closure (because of _ patterns). However,
166166
/// to ensure the places are initialized, we introduce fake reads.
167167
/// Consider these two examples:
168-
/// ``` (discriminant matching with only wildcard arm)
168+
/// ```ignore (discriminant matching with only wildcard arm)
169169
/// let x: u8;
170170
/// let c = || match x { _ => () };
171171
/// ```
172172
/// In this example, we don't need to actually read/borrow `x` in `c`, and so we don't
173173
/// want to capture it. However, we do still want an error here, because `x` should have
174174
/// to be initialized at the point where c is created. Therefore, we add a "fake read"
175175
/// instead.
176-
/// ``` (destructured assignments)
176+
/// ```ignore (destructured assignments)
177177
/// let c = || {
178178
/// let (t1, t2) = t;
179179
/// }

0 commit comments

Comments
 (0)