Fix bad use of address-of in example

This commit is contained in:
Joshua Suskalo 2024-10-03 14:11:15 -04:00
parent 2d2e38c068
commit cdd4b55e26
No known key found for this signature in database
GPG key ID: 9B6BA586EFF1B9F0

View file

@ -338,7 +338,7 @@ Clojure code to make this easier.
[ints] [ints]
(let [arr-len (count ints) (let [arr-len (count ints)
int-array (mem/serialize ints [::mem/array ::mem/int arr-len])] int-array (mem/serialize ints [::mem/array ::mem/int arr-len])]
(native-fn (mem/address-of int-array) arr-len))) (native-fn int-array arr-len)))
``` ```
The symbol `native-fn` can be any unqualified symbol, and names the native The symbol `native-fn` can be any unqualified symbol, and names the native