From 3187c1ff4753a460fee0e5f83f1fa734558951a0 Mon Sep 17 00:00:00 2001 From: iiice_oo Date: Tue, 15 Nov 2022 21:49:51 +0800 Subject: [PATCH] docs:Fix typo "you an" -> "you can" (#607) --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index cee1d91c6..7bcfdd97a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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: