about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEllen <supbscripter@gmail.com>2021-02-10 05:29:45 +0000
committerEllen <supbscripter@gmail.com>2021-02-10 05:29:45 +0000
commit0ffa2da18648afa75f272dfbd0182232c2ca87c1 (patch)
treefd75e32923494e1e16c9153560c410591b33bf61
parent042274558563623b7656df0a413bd3ccaf83678d (diff)
downloadrust-0ffa2da18648afa75f272dfbd0182232c2ca87c1.tar.gz
rust-0ffa2da18648afa75f272dfbd0182232c2ca87c1.zip
comma...
-rw-r--r--compiler/rustc_typeck/src/collect/type_of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/collect/type_of.rs b/compiler/rustc_typeck/src/collect/type_of.rs
index c2c9984f2af..571b91cf254 100644
--- a/compiler/rustc_typeck/src/collect/type_of.rs
+++ b/compiler/rustc_typeck/src/collect/type_of.rs
@@ -42,7 +42,7 @@ pub(super) fn opt_const_param_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<
             Node::Ty(hir_ty @ Ty { kind: TyKind::Path(QPath::TypeRelative(_, segment)), .. }) => {
                 // Walk up from the parent_node to find an item so that
                 // we can resolve the relative path to an actual associated type.
-                // For the code example above this item would be the Foo trait.
+                // For the code example above, this item would be the Foo trait.
                 let item_hir_id = tcx
                     .hir()
                     .parent_iter(hir_id)