diff --git a/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/find_anon_type.rs b/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/find_anon_type.rs index ffdaedf8666..d9ab8319045 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/find_anon_type.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/find_anon_type.rs @@ -19,7 +19,7 @@ use rustc_middle::ty::{self, Region, TyCtxt}; /// { x.push(y); } /// ``` /// The function returns the nested type corresponding to the anonymous region -/// for e.g., `&u8` and Vec<`&u8`. +/// for e.g., `&u8` and `Vec<&u8>`. pub(crate) fn find_anon_type( tcx: TyCtxt<'tcx>, region: Region<'tcx>,