From 2cebe8d4def1a24d5df12819defbc980a0fcaea2 Mon Sep 17 00:00:00 2001 From: Josef Johansson Date: Sun, 3 Mar 2024 19:44:01 +0100 Subject: [PATCH] docs/index.md: Typo Code was incorrect, this commit fixes that. Also change the name of the chan variable to be the same as in the invalid case above it. --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 5435a2e3f..1a88b476e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1221,13 +1221,13 @@ It("panics in a goroutine", func() { ```go It("panics in a goroutine", func() { - done := make(chan struct{}) + c := make(chan struct{}) go func() { defer GinkgoRecover() Fail("boom") close(c) }() - Eventually(done).Should(BeClosed()) + Eventually(c).Should(BeClosed()) }) ```