From 283d082db990ce84a9adcd51d908f99a71534808 Mon Sep 17 00:00:00 2001 From: Corin Lawson Date: Fri, 22 Dec 2023 16:18:03 +1100 Subject: [PATCH] chore: correct indent in README code block Prior to this change, the indentation of a nested code block had been corrupted. This change ensures there are spaces to indent the ordered list and tabs to indent the code within the code block. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2da874e..3c179be 100644 --- a/README.md +++ b/README.md @@ -93,18 +93,18 @@ go generate ```go func TestObject(t *testing.T) { m := mock.New(t, - mock.ExpectGet(func(t testing.TB, key string) (any, bool) { - // Define your mock's behaviour - }), - mock.ExpectPut(func(t testing.TB, key string, value any) error { - // Define your mock's behaviour - }), - ) + mock.ExpectGet(func(t testing.TB, key string) (any, bool) { + // Define your mock's behaviour + }), + mock.ExpectPut(func(t testing.TB, key string, value any) error { + // Define your mock's behaviour + }), + ) // Use the mock instance in your test // Assert that all expected methods were called - mock.AssertExpectedCalls(t, m) + mock.AssertExpectedCalls(t, m) } ```