fix comment

This commit is contained in:
Bastian Kauschke 2020-03-23 17:08:41 +01:00 committed by GitHub
parent 6a7106cb32
commit 0a17c4c190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,7 +255,7 @@ pub(super) fn type_of(tcx: TyCtxt<'_>, def_id: DefId) -> Ty<'_> {
bug!("no arg matching AnonConst in path");
});
// try to use the segment resolution if it is valid, otherwise we
// Try to use the segment resolution if it is valid, otherwise we
// default to the path resolution.
let res = segment.res.filter(|&r| r != Res::Err).unwrap_or(path.res);
let generics = match res {