]> git.lizzy.rs Git - rust.git/commitdiff
fix comment
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Mon, 23 Mar 2020 16:08:41 +0000 (17:08 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 16:08:41 +0000 (17:08 +0100)
src/librustc_typeck/collect/type_of.rs

index f085486900d744e0fef718916ad1cf76cb14698c..16c8689ae0cbc0502b4b6ac5232c290b29d65f76 100644 (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 {