Skip to content

Commit 5091209

Browse files
committed
Fix a typo in the find_anon_type doc
1 parent 247337f commit 5091209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_infer/src/infer/error_reporting/nice_region_error/find_anon_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use rustc_middle::ty::{self, Region, TyCtxt};
1919
/// { x.push(y); }
2020
/// ```
2121
/// The function returns the nested type corresponding to the anonymous region
22-
/// for e.g., `&u8` and Vec<`&u8`.
22+
/// for e.g., `&u8` and `Vec<&u8>`.
2323
pub(crate) fn find_anon_type(
2424
tcx: TyCtxt<'tcx>,
2525
region: Region<'tcx>,

0 commit comments

Comments
 (0)