Skip to content

Commit 37270f0

Browse files
committed
Remove outdated Belt.Array documentation regarding stdlib's Array.get
1 parent 333b20c commit 37270f0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

runtime/Belt_Array.resi

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@
1414

1515
/***
1616
Utilities for `Array` functions.
17-
18-
### Note about index syntax
19-
20-
Code like `arr[0]` does *not* compile to JavaScript `arr[0]`. Reason transforms
21-
the `[]` index syntax into a function: `Array.get(arr, 0)`. By default, this
22-
uses the default standard library's `Array.get` function, which may raise an
23-
exception if the index isn't found. If you `open Belt`, it will use the
24-
`Belt.Array.get` function which returns options instead of raising exceptions.
25-
[See this for more information](../belt.mdx#array-access-runtime-safety).
2617
*/
2718

2819
type t<'a> = array<'a>

0 commit comments

Comments
 (0)