From 167f141274d27df6ffb3f3156c009ab22ac277f9 Mon Sep 17 00:00:00 2001 From: Dmitry Matveyev Date: Sat, 30 Dec 2023 02:45:22 +0400 Subject: [PATCH] Fix typo --- docs/c-ffi/calling-c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/c-ffi/calling-c.md b/docs/c-ffi/calling-c.md index 72d690b5..83e45b25 100644 --- a/docs/c-ffi/calling-c.md +++ b/docs/c-ffi/calling-c.md @@ -42,7 +42,7 @@ In Pony, a String is an object with a header and fields, while in C a `char*` is Pony classes and structs correspond directly to pointers to the class or struct in C. -For C pointers to simple types, such as U64, the Pony `Pointer[]` polymorphic type should be used, with a `tag` reference capability. To represent `void*` arguments, you should the `Pointer[None] tag` type, which will allow you to pass a pointer to any type, including other pointers. This is needed to write declarations for certain POSIX functions, such as `memcpy`: +For C pointers to simple types, such as U64, the Pony `Pointer[]` polymorphic type should be used, with a `tag` reference capability. To represent `void*` arguments, you should use the `Pointer[None] tag` type, which will allow you to pass a pointer to any type, including other pointers. This is needed to write declarations for certain POSIX functions, such as `memcpy`: ```pony // The C type is void* memcpy(void *restrict dst, const void *restrict src, size_t n);