Skip to content

Commit

Permalink
docs/index.md: Typo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isodude authored and onsi committed Mar 3, 2024
1 parent 881efde commit 2cebe8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})
```

Expand Down

0 comments on commit 2cebe8d

Please sign in to comment.