@@ -148,7 +148,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
148
148
///
149
149
/// This function would create a label like this:
150
150
///
151
- /// ```
151
+ /// ```text
152
152
/// | fn foo(x: &u32) { .. }
153
153
/// ------- fully elaborated type of `x` is `&'1 u32`
154
154
/// ```
@@ -300,7 +300,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
300
300
/// elaborated type, returning something like `'1`. Result looks
301
301
/// like:
302
302
///
303
- /// ```
303
+ /// ```text
304
304
/// | fn foo(x: &u32) { .. }
305
305
/// ------- fully elaborated type of `x` is `&'1 u32`
306
306
/// ```
@@ -347,7 +347,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
347
347
/// that has no type annotation.
348
348
/// For example, we might produce an annotation like this:
349
349
///
350
- /// ```
350
+ /// ```text
351
351
/// | foo(|a, b| b)
352
352
/// | - -
353
353
/// | | |
@@ -396,7 +396,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
396
396
/// that contains the anonymous reference we want to give a name
397
397
/// to. For example, we might produce an annotation like this:
398
398
///
399
- /// ```
399
+ /// ```text
400
400
/// | fn a<T>(items: &[T]) -> Box<dyn Iterator<Item = &T>> {
401
401
/// | - let's call the lifetime of this reference `'1`
402
402
/// ```
@@ -600,7 +600,7 @@ impl<'tcx> MirBorrowckCtxt<'_, 'tcx> {
600
600
/// fully elaborated type, returning something like `'1`. Result
601
601
/// looks like:
602
602
///
603
- /// ```
603
+ /// ```text
604
604
/// | let x = Some(&22);
605
605
/// - fully elaborated type of `x` is `Option<&'1 u32>`
606
606
/// ```
0 commit comments