Skip to content

Commit 3187c1f

Browse files
authored
docs:Fix typo "you an" -> "you can" (#607)
1 parent 808d192 commit 3187c1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ It("fetches the correct count", func(ctx SpecContext) {
374374
}, SpecTimeout(time.Second))
375375
```
376376

377-
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.
377+
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.
378378

379379

380380
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:

0 commit comments

Comments
 (0)