From fa19a618544d8544261f0c96a15f396ba3e2732a Mon Sep 17 00:00:00 2001 From: pytimer Date: Sat, 13 Apr 2019 13:45:08 +0800 Subject: [PATCH] update the example code --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbbf729..5fc5c76 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ var simpleA = `{"a":100, "b":200, "c":"hello"}` var simpleB = `{"a":100, "b":200, "c":"goodbye"}` func main() { - patch, e := jsonpatch.CreatePatch([]byte(simpleA), []byte(simpleA)) + patch, e := jsonpatch.CreatePatch([]byte(simpleA), []byte(simpleB)) if e != nil { fmt.Printf("Error creating JSON patch:%v", e) return