about summary refs log tree commit diff
diff options
context:
space:
mode:
authorb-naber <bn263@gmx.de>2022-08-03 11:04:10 +0200
committerb-naber <bn263@gmx.de>2022-08-03 11:04:10 +0200
commit1405ce35acbcd61b9da8ab7ded6201639cb83d52 (patch)
tree8080e523417ced66d025753cce5cfdb14c17fd9a
parent48316dfea1914d25189fa441e7310449ed76a446 (diff)
downloadrust-1405ce35acbcd61b9da8ab7ded6201639cb83d52.tar.gz
rust-1405ce35acbcd61b9da8ab7ded6201639cb83d52.zip
fix typo
-rw-r--r--compiler/rustc_infer/src/infer/higher_ranked/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/higher_ranked/mod.rs b/compiler/rustc_infer/src/infer/higher_ranked/mod.rs
index e543ae1fcda..4608d3984ac 100644
--- a/compiler/rustc_infer/src/infer/higher_ranked/mod.rs
+++ b/compiler/rustc_infer/src/infer/higher_ranked/mod.rs
@@ -16,7 +16,7 @@ impl<'a, 'tcx> CombineFields<'a, 'tcx> {
     ///
     /// This is implemented by first entering a new universe.
     /// We then replace all bound variables in `sup` with placeholders,
-    /// and all bound variables in `sup` with inference vars.
+    /// and all bound variables in `sub` with inference vars.
     /// We can then just relate the two resulting types as normal.
     ///
     /// Note: this is a subtle algorithm. For a full explanation, please see