From 119bff124724646d4012a2d73042aae4d259685f Mon Sep 17 00:00:00 2001
From: Paul Trojahn <paul.trojahn@gmail.com>
Date: Wed, 26 May 2021 19:19:47 +0200
Subject: [PATCH] Fix typo

---
 compiler/rustc_middle/src/ty/subst.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/rustc_middle/src/ty/subst.rs b/compiler/rustc_middle/src/ty/subst.rs
index c84ca61122f..9b8d22d8eaf 100644
--- a/compiler/rustc_middle/src/ty/subst.rs
+++ b/compiler/rustc_middle/src/ty/subst.rs
@@ -197,7 +197,7 @@ impl<'a, 'tcx> InternalSubsts<'tcx> {
     }
 
     /// Interpret these substitutions as the substitutions of a generator type.
-    /// Closure substitutions have a particular structure controlled by the
+    /// Generator substitutions have a particular structure controlled by the
     /// compiler that encodes information like the signature and generator kind;
     /// see `ty::GeneratorSubsts` struct for more comments.
     pub fn as_generator(&'tcx self) -> GeneratorSubsts<'tcx> {