Skip to content

Commit

Permalink
Fix the example code in readme (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
pytimer authored and tamalsaha committed Jun 25, 2019
1 parent 7c0e3b2 commit c60b40a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c60b40a

Please sign in to comment.