From 9ab695dc860601c4c08a8c2e8f1ce5c40ef36d3a Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 16 Feb 2022 16:20:11 +0100 Subject: [PATCH] docs: Fix Example-Code in Readme.md Rename function from "WithJsonFields" to "WithJSONFields" --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9aa18fd..3035d48 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ err := ms.Verify( Method: http.MethodPost, Path: "/api/categories"}. WithHeader("Environment", "Development"). - WithJsonFields(map[string]interface{}{ + WithJSONFields(map[string]interface{}{ "name": "Tools", }), mockserver.Once()) @@ -62,7 +62,7 @@ err := ms.Verify(mockserver.RequestMatcher{ Method: http.MethodPost, Path: "/api/categories"}. WithHeader("Environment", "Development"). - WithJsonFields(map[string]interface{}{ + WithJSONFields(map[string]interface{}{ "name": "Tools", })) ```