From 5091209750132ccb7bc53f5d00fc19182554202a Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 28 Feb 2021 23:10:55 +0900 Subject: [PATCH] Fix a typo in the `find_anon_type` doc --- .../infer/error_reporting/nice_region_error/find_anon_type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>,