From 55f6e27c32e2f3ecf66c31b72413b5ba636a56d4 Mon Sep 17 00:00:00 2001 From: Sangwoo Joh Date: Tue, 1 Jun 2021 02:32:10 -0700 Subject: [PATCH] Fix matching double-quotes in json example (#1448) Summary: Hi. Thanks for the great tool! This is just a simple correction for string literals in the `Util` module. Pull Request resolved: https://github.com/facebook/infer/pull/1448 Reviewed By: ngorogiannis Differential Revision: D28772080 Pulled By: jvillard fbshipit-source-id: 36e2145c9 --- infer/src/base/Utils.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infer/src/base/Utils.ml b/infer/src/base/Utils.ml index 284a3df9e..b66e43e3f 100644 --- a/infer/src/base/Utils.ml +++ b/infer/src/base/Utils.ml @@ -398,7 +398,7 @@ let assoc_of_yojson yojson_obj ~src = (* missing entries in config reported as empty list *) [] | _ -> - die_expected_yojson_type "object" yojson_obj ~example:"{ \"foo\': \"bar\" }" ~src + die_expected_yojson_type "object" yojson_obj ~example:"{ \"foo\": \"bar\" }" ~src let string_of_yojson yojson_obj ~src = @@ -414,7 +414,7 @@ let list_of_yojson yojson_obj ~src = | `List list -> list | _ -> - die_expected_yojson_type "list" yojson_obj ~example:"[ \"foo\', \"bar\" ]" ~src + die_expected_yojson_type "list" yojson_obj ~example:"[ \"foo\", \"bar\" ]" ~src let string_list_of_yojson yojson_obj ~src =