Change defcstruct to defalias in the readme

This commit is contained in:
Joshua Suskalo 2021-09-25 09:29:24 -05:00
parent 2aa450ae6b
commit e02a60b331

View file

@ -28,7 +28,7 @@ In the simplest cases, the native functions you call will work exclusively with
built-in types, for example the function `strlen` from libc. built-in types, for example the function `strlen` from libc.
```clojure ```clojure
(require '[coffi.ffi :as ffi :refer [defcfn defcstruct]]) (require '[coffi.ffi :as ffi :refer [defcfn defalias]])
(defcfn strlen (defcfn strlen
"Given a string, measures its length in bytes." "Given a string, measures its length in bytes."