Skip to content

Commit c6f95d2

Browse files
authored
Merge pull request #3795 from tatchi/patch-1
stringify -> stringifyAny
2 parents 993f911 + d528c3f commit c6f95d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api/Js.Json.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ <h1>Module <a href="type_Js.Json.html">Js.Json</a></h1>
492492
</div>
493493
<div class="examples">
494494
<pre class="example"> <pre class="codepre"><code class="code">(* prints `["foo", "bar"]` *)
495-
Js.log @@ Js.Json.stringify [| "foo"; "bar" |]
495+
Js.log @@ Js.Json.stringifyAny [| "foo"; "bar" |]
496496
</code></pre> </pre>
497497
</div>
498498
</div>
499499

500-
</body></html>
500+
</body></html>

jscomp/others/js_json.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ external stringifyAny : 'a -> string option = "stringify"
229229
230230
@example {[
231231
(* prints `["foo", "bar"]` *)
232-
Js.log \@\@ Js.Json.stringify [| "foo"; "bar" |]
232+
Js.log \@\@ Js.Json.stringifyAny [| "foo"; "bar" |]
233233
]}
234234
235235
@see <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify> MDN

0 commit comments

Comments
 (0)