Skip to content

Commit c1d2eca

Browse files
authored
Rollup merge of rust-lang#46979 - clarcharr:rustc_docs, r=arielb1
Make internal docs build properly. `'1` isn't a valid lifetime and resulted in a syntax error.
2 parents 4ababef + 8e80c57 commit c1d2eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/mir/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ pub struct GeneratorLayout<'tcx> {
18961896
///
18971897
/// Example: If type check produces a closure with the closure substs:
18981898
///
1899-
/// ```
1899+
/// ```text
19001900
/// ClosureSubsts = [
19011901
/// i8, // the "closure kind"
19021902
/// for<'x> fn(&'a &'x u32) -> &'x u32, // the "closure signature"
@@ -1907,7 +1907,7 @@ pub struct GeneratorLayout<'tcx> {
19071907
/// here, there is one unique free region (`'a`) but it appears
19081908
/// twice. We would "renumber" each occurence to a unique vid, as follows:
19091909
///
1910-
/// ```
1910+
/// ```text
19111911
/// ClosureSubsts = [
19121912
/// i8, // the "closure kind"
19131913
/// for<'x> fn(&'1 &'x u32) -> &'x u32, // the "closure signature"

0 commit comments

Comments
 (0)