Skip to content

Commit a776200

Browse files
committed
removes extra newlines in docstrings
1 parent b5a8b83 commit a776200

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

runtime/Stdlib_Array.resi

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ type t<'a> = array<'a>
1111
type arrayLike<'a>
1212

1313
/**
14-
`fromIterator(iterator)`
15-
16-
Creates an array from the provided `iterator`
14+
`fromIterator(iterator)` creates an array from the provided `iterator`
1715
1816
## Examples
1917
@@ -35,9 +33,7 @@ external fromIterator: Stdlib_Iterator.t<'a> => array<'a> = "Array.from"
3533
external fromArrayLikeWithMap: (arrayLike<'a>, 'a => 'b) => array<'b> = "Array.from"
3634

3735
/**
38-
`make(~length, init)`
39-
40-
Creates an array of length `length` initialized with the value of `init`.
36+
`make(~length, init)` creates an array of length `length` initialized with the value of `init`.
4137
4238
## Examples
4339

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Path Array.
213213
"kind": 12,
214214
"tags": [],
215215
"detail": "(~length: int, 'a) => array<'a>",
216-
"documentation": {"kind": "markdown", "value": "\n`make(~length, init)`\n\nCreates an array of length `length` initialized with the value of `init`.\n\n## Examples\n\n```rescript\nArray.make(~length=3, #apple)->assertEqual([#apple, #apple, #apple])\nArray.make(~length=6, 7)->assertEqual([7, 7, 7, 7, 7, 7])\n```\n"}
216+
"documentation": {"kind": "markdown", "value": "\n`make(~length, init)` creates an array of length `length` initialized with the value of `init`.\n\n## Examples\n\n```rescript\nArray.make(~length=3, #apple)->assertEqual([#apple, #apple, #apple])\nArray.make(~length=6, 7)->assertEqual([7, 7, 7, 7, 7, 7])\n```\n"}
217217
}, {
218218
"label": "lastIndexOfFrom",
219219
"kind": 12,
@@ -573,7 +573,7 @@ Path Array.
573573
"kind": 12,
574574
"tags": [],
575575
"detail": "Iterator.t<'a> => array<'a>",
576-
"documentation": {"kind": "markdown", "value": "\n`fromIterator(iterator)`\n\nCreates an array from the provided `iterator`\n\n## Examples\n\n```rescript\nMap.fromArray([(\"foo\", 1), (\"bar\", 2)])\n->Map.values\n->Array.fromIterator\n->assertEqual([1, 2])\n```\n"}
576+
"documentation": {"kind": "markdown", "value": "\n`fromIterator(iterator)` creates an array from the provided `iterator`\n\n## Examples\n\n```rescript\nMap.fromArray([(\"foo\", 1), (\"bar\", 2)])\n->Map.values\n->Array.fromIterator\n->assertEqual([1, 2])\n```\n"}
577577
}, {
578578
"label": "forEach",
579579
"kind": 12,
@@ -613,7 +613,7 @@ Path Array.m
613613
"kind": 12,
614614
"tags": [],
615615
"detail": "(~length: int, 'a) => array<'a>",
616-
"documentation": {"kind": "markdown", "value": "\n`make(~length, init)`\n\nCreates an array of length `length` initialized with the value of `init`.\n\n## Examples\n\n```rescript\nArray.make(~length=3, #apple)->assertEqual([#apple, #apple, #apple])\nArray.make(~length=6, 7)->assertEqual([7, 7, 7, 7, 7, 7])\n```\n"}
616+
"documentation": {"kind": "markdown", "value": "\n`make(~length, init)` creates an array of length `length` initialized with the value of `init`.\n\n## Examples\n\n```rescript\nArray.make(~length=3, #apple)->assertEqual([#apple, #apple, #apple])\nArray.make(~length=6, 7)->assertEqual([7, 7, 7, 7, 7, 7])\n```\n"}
617617
}, {
618618
"label": "map",
619619
"kind": 12,

0 commit comments

Comments
 (0)