Skip to content

Commit 2cebe8d

Browse files
isodudeonsi
authored andcommitted
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.
1 parent 881efde commit 2cebe8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1221,13 +1221,13 @@ It("panics in a goroutine", func() {
12211221

12221222
```go
12231223
It("panics in a goroutine", func() {
1224-
done := make(chan struct{})
1224+
c := make(chan struct{})
12251225
go func() {
12261226
defer GinkgoRecover()
12271227
Fail("boom")
12281228
close(c)
12291229
}()
1230-
Eventually(done).Should(BeClosed())
1230+
Eventually(c).Should(BeClosed())
12311231
})
12321232
```
12331233

0 commit comments

Comments
 (0)