Skip to content

Commit

Permalink
corrected contract annotation position.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben authored and suimong committed Feb 7, 2024
1 parent e1a5e74 commit 5a10769
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions core/stdlib/std.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,7 @@
(fun start => RangeSecond start -> Codomain),

IndexedArrayFun
| [| 'Index, 'Split |] -> Dyn -> Dyn
| doc m%"
**Warning**: this is an unstable item. It might be renamed,
modified or deleted in any subsequent minor Nickel version.
Expand Down Expand Up @@ -1379,15 +1380,13 @@
else
value
in
let contract
| [| 'Index, 'Split |] -> Dyn -> Dyn
= fun type label function =>
DependentFun
ArrayIndexFirst
(fun index => ArrayIndexSecond type index -> Dyn)
label
function
in contract,
let contract = fun type label function =>
DependentFun
ArrayIndexFirst
(fun index => ArrayIndexSecond type index -> Dyn)
label
function
in contract,

ArraySliceFun
| doc m%"
Expand Down

0 comments on commit 5a10769

Please sign in to comment.