mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-04 01:25:04 +03:00
Change nth to unsafe-nth
This commit is contained in:
parent
1df326529e
commit
949d4e29ee
@ -176,7 +176,7 @@ templateNth :: (String, Binder)
|
||||
templateNth =
|
||||
let t = VarTy "t"
|
||||
in defineTemplate
|
||||
(SymPath ["Array"] "nth")
|
||||
(SymPath ["Array"] "unsafe-nth")
|
||||
(FuncTy [RefTy (StructTy "Array" [t]), IntTy] (RefTy t))
|
||||
"gets a reference to the `n`th element from an array `a`."
|
||||
(toTemplate "$t* $NAME (Array *aRef, int n)")
|
||||
|
Loading…
Reference in New Issue
Block a user