Skip to content

Commit

Permalink
Update docs/c-ffi/calling-c.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc authored Jan 16, 2024
1 parent 81998d0 commit 5f62931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/c-ffi/calling-c.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ env.out.print(size.height.string())

A `NullablePointer` type can only be used with `structs`, and is only intended for output parameters (like in the example above) or for return types from C. You don't need to use a `NullablePointer` if you are only passing a `struct` as a regular input parameter.

If you are using a C function that returns a struct, remember, that you need to return a pointer to the struct. The following in Pony should be read as **returns a pointer to struct `Rect`**:
If you are using a C function that returns a struct, remember, that the C function needs to return a pointer to the struct. The following in Pony should be read as **returns a pointer to struct `Rect`**:

```pony
use @from_c[Rect]()
Expand Down

0 comments on commit 5f62931

Please sign in to comment.