Skip to content

Commit 5f76ce4

Browse files
committed
nit: fix comment
1 parent 557966e commit 5f76ce4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

chalk-ir/src/debug.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,10 @@ pub struct ParameterKindsInnerDebug<'a, I: Interner> {
239239

240240
impl<'a, I: Interner> Debug for ParameterKindsInnerDebug<'a, I> {
241241
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error> {
242-
// NB: We always print the `for<>`, even if it is empty,
243-
// because it may affect the debruijn indices of things
244-
// contained within. For example, `for<> { ^1.0 }` is very
245-
// different from `^1.0` in terms of what variable is being
246-
// referenced.
242+
// NB: We print parameter kinds as a list delimited by `<>`,
243+
// like `<K1, K2, ..>`. This is because parameter kind lists
244+
// are always associated with binders like `forall<type> {
245+
// ... }`.
247246
write!(fmt, "<")?;
248247
for (index, binder) in self.parameter_kinds.iter(self.interner).enumerate() {
249248
if index > 0 {

0 commit comments

Comments
 (0)