about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-26 12:58:30 +0200
committerGitHub <noreply@github.com>2020-09-26 12:58:30 +0200
commit67f8c5914ff4175e7588db40ee757acba79bda53 (patch)
treea34d505744b942a3be498347d00e5bca766012d0
parent0a19836a81181244df46d8fe4f05e1898be0d1ed (diff)
parent900daba2cbcc077f26b45c31c6a853ef5d4d6e9f (diff)
downloadrust-67f8c5914ff4175e7588db40ee757acba79bda53.tar.gz
rust-67f8c5914ff4175e7588db40ee757acba79bda53.zip
Rollup merge of #77204 - LingMan:patch-3, r=jonas-schievink
Remove stray word from `ClosureKind::extends` docs
-rw-r--r--compiler/rustc_middle/src/ty/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs
index 637ef4c17eb..492afa54445 100644
--- a/compiler/rustc_middle/src/ty/mod.rs
+++ b/compiler/rustc_middle/src/ty/mod.rs
@@ -2675,7 +2675,7 @@ impl<'tcx> ClosureKind {
         }
     }
 
-    /// Returns `true` if this a type that impls this closure kind
+    /// Returns `true` if a type that impls this closure kind
     /// must also implement `other`.
     pub fn extends(self, other: ty::ClosureKind) -> bool {
         match (self, other) {