diff --git a/docs/index.md b/docs/index.md index a73adbe48..30514c04d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -60,14 +60,14 @@ To use Gomega with Golang's XUnit style tests: ```go func TestFarmHasCow(t *testing.T) { - g := NewGomegaWithT(t) + g := NewWithT(t) f := farm.New([]string{"Cow", "Horse"}) g.Expect(f.HasCow()).To(BeTrue(), "Farm should have cow") } ``` -`NewGomegaWithT(t)` wraps a `*testing.T` and returns a struct that supports `Expect`, `Eventually`, and `Consistently`. +`NewWithT(t)` wraps a `*testing.T` and returns a struct that supports `Expect`, `Eventually`, and `Consistently`. ## Making Assertions