Skip to content

Commit e309542

Browse files
committed
format and testoutput
1 parent 1ad47d6 commit e309542

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

runtime/Js_json.resi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ let test: ('a, Kind.t<'b>) => bool
7676
@deprecated({
7777
reason: "Use pattern matching instead.",
7878
migrate: switch %insert.unlabelledArgument(0) {
79-
| JSON.String(str) => Some(str)
80-
| _ => None
81-
}
79+
| JSON.String(str) => Some(str)
80+
| _ => None
81+
},
8282
})
8383
let decodeString: t => option<Js_string.t>
8484

tests/analysis_tests/tests/src/expected/Completion.res.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ Path Array.
316316
"tags": [],
317317
"detail": "array<'a> => unit",
318318
"documentation": {"kind": "markdown", "value": "\n`reverse(array)` reverses the order of the items in `array`.\n\nBeware this will *mutate* the array.\n\nSee [`Array.reverse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse) on MDN.\n\n## Examples\n\n```rescript\nlet someArray = [\"hi\", \"hello\"]\nsomeArray->Array.reverse\n\nsomeArray == [\"hello\", \"hi\"]\n```\n"}
319+
}, {
320+
"label": "fromString",
321+
"kind": 12,
322+
"tags": [],
323+
"detail": "string => array<string>",
324+
"documentation": {"kind": "markdown", "value": "\n`fromString(str)` creates an array of each character as a separate string from the provided `str`.\n\n## Examples\n\n```rescript\nArray.fromString(\"abcde\") == [\"a\", \"b\", \"c\", \"d\", \"e\"]\n```\n"}
319325
}, {
320326
"label": "findLastIndexWithIndex",
321327
"kind": 12,

0 commit comments

Comments
 (0)