Skip to content

Commit 232f6dd

Browse files
authored
Fix ccall example for function 'f' (#59922)
This fixes a small typo in the example demonstrating the difference between the `@ccall` macro and the `ccall` syntax.
1 parent 220ca67 commit 232f6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/manual/calling-c-and-fortran-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ A table of translations between the macro and function interfaces is given below
11521152
| `@ccall` | `ccall` |
11531153
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
11541154
| `@ccall clock()::Int32` | `ccall(:clock, Int32, ())` |
1155-
| `@ccall f(a::Cint)::Cint` | `ccall(:a, Cint, (Cint,), a)` |
1155+
| `@ccall f(a::Cint)::Cint` | `ccall(:f, Cint, (Cint,), a)` |
11561156
| `@ccall "mylib".f(a::Cint, b::Cdouble)::Cvoid` | `ccall((:f, "mylib"), Cvoid, (Cint, Cdouble), a, b)` |
11571157
| `@ccall $fptr.f()::Cvoid` | `ccall(fptr, f, Cvoid, ())` |
11581158
| `@ccall printf("%s = %d\n"::Cstring ; "foo"::Cstring, foo::Cint)::Cint` | `<unavailable>` |

0 commit comments

Comments
 (0)