docs: fix link for an example of a module that calls C code from V (#20586)

This commit is contained in:
Muhammad Saleh Solahudin 2024-01-19 22:38:45 +07:00 committed by GitHub
parent 5310c102a6
commit a6f2f6ab65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6962,7 +6962,7 @@ To cast a `voidptr` to a V reference, use `user := &User(user_void_ptr)`.
`voidptr` can also be dereferenced into a V struct through casting: `user := User(user_void_ptr)`. `voidptr` can also be dereferenced into a V struct through casting: `user := User(user_void_ptr)`.
[an example of a module that calls C code from V](https://github.com/vlang/v/blob/master/vlib/v/tests/project_with_c_code/mod1/wrapper.v) [an example of a module that calls C code from V](https://github.com/vlang/v/blob/master/vlib/v/tests/project_with_c_code/mod1/wrapper.c.v)
### C Declarations ### C Declarations