1
Fork 0

Fix a typo in the find_anon_type doc

This commit is contained in:
Yuki Okushi 2021-02-28 23:10:55 +09:00
parent 247337f409
commit 5091209750

View file

@ -19,7 +19,7 @@ use rustc_middle::ty::{self, Region, TyCtxt};
/// { x.push(y); } /// { x.push(y); }
/// ``` /// ```
/// The function returns the nested type corresponding to the anonymous region /// 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( pub(crate) fn find_anon_type(
tcx: TyCtxt<'tcx>, tcx: TyCtxt<'tcx>,
region: Region<'tcx>, region: Region<'tcx>,