From 8a14f1f1a5261cfaa9e4ff01c99add564ce7fa26 Mon Sep 17 00:00:00 2001 From: Sho Iizuka Date: Mon, 14 Nov 2022 21:39:59 +0900 Subject: [PATCH] Fix typo in docs/index.md (#1081) --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index b9b54a3c9..091b4ea6a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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. @@ -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)