Skip to content

Commit

Permalink
docs:Fix typo "you an" -> "you can" (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
iiiceoo authored Nov 15, 2022
1 parent 808d192 commit 3187c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ It("fetches the correct count", func(ctx SpecContext) {
}, SpecTimeout(time.Second))
```

now when the spec times out both the `client.FetchCount` function and `Eventually` will be signaled and told to exit. you an also use `Eventually().WithContext(ctx)` to provide the context.
now when the spec times out both the `client.FetchCount` function and `Eventually` will be signaled and told to exit. you can also use `Eventually().WithContext(ctx)` to provide the context.


Since functions that take a context.Context as a first-argument are common in Go, `Eventually` supports automatically injecting the provided context into the function. This plays nicely with `WithArguments()` as well. You can rewrite the above example as:
Expand Down

0 comments on commit 3187c1f

Please sign in to comment.