]> git.lizzy.rs Git - rust.git/commitdiff
Typo
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Tue, 18 Aug 2020 13:23:45 +0000 (15:23 +0200)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Tue, 18 Aug 2020 13:23:45 +0000 (15:23 +0200)
src/librustc_middle/query/mod.rs

index 15d267e4b1eb0c2beaf0b1123f1f5d1c39bedbd5..7a6e4a90683ff00203a3e9480dda1ebd2a168c02 100644 (file)
@@ -281,7 +281,7 @@ fn describe_as_module(def_id: LocalDefId, tcx: TyCtxt<'_>) -> String {
             cache_on_disk_if { key.is_local() }
         }
 
-        /// The `DefId` is the `DefId` of the containing MIR body. Promoteds to not have their own
+        /// The `DefId` is the `DefId` of the containing MIR body. Promoteds do not have their own
         /// `DefId`. This function returns all promoteds in the specified body. The body references
         /// promoteds by the `DefId` and the `mir::Promoted` index. This is necessary, because
         /// after inlining a body may refer to promoteds from other bodies. In that case you still