Skip to content

Commit

Permalink
Fix typo in docs/index.md (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
arosh authored Nov 14, 2022
1 parent 2669612 commit 8a14f1f
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 @@ -2175,7 +2175,7 @@ Describe("checking out a book", Ordered, func() {
})
```

here we only set up the `libraryCLient` once before all the specs run, and then tear it down once all the specs complete.
here we only set up the `libraryClient` once before all the specs run, and then tear it down once all the specs complete.

`BeforeAll` and `AfterAll` nodes can only be introduced within an `Ordered` container. `BeforeAll` and `AfterAll` can also be nested within containers that appear in `Ordered` containers - in such cases they will run before/after the specs in that nested container.

Expand All @@ -2196,7 +2196,7 @@ It's a common pattern to have setup and cleanup code at the outer-most level of
```go
BeforeEach(func() {
libraryClient = library.NewClient()
Expect(libraryClient.Connect()).To(Succeed()
Expect(libraryClient.Connect()).To(Succeed())

snapshot := libraryClient.TakeSnapshot()
DeferCleanup(libraryClient.RestoreSnapshot, snapshot)
Expand Down

0 comments on commit 8a14f1f

Please sign in to comment.