Merge pull request #4771 from sysvinit/ffi-docs
Update arguments to MKSTR() in FFI docs.
commit095fb31160839b328d15d2449614593026117421
authorNiklas Larsson <metaniklas@gmail.com>
dateWed 23 Oct 2019, 09:43 (7 years ago)
parent454f0b024c7571
docs/reference/ffi.rst+1−1
@@ -384,7 +384,7 @@ copy it over.
384384 const VAL get_string ()
385385 {
386386 char * c_string = get_string_allocated_with_malloc()
387− const VAL idris_string = MKSTR(c_string);
387+ const VAL idris_string = MKSTR(get_vm(), c_string);
388388 free(c_string);
389389 return idris_string
390390 }