Skip to content

Commit b7af3a1

Browse files
authored
list at-ccall in docs, fix docstring (#36781)
1 parent d81f044 commit b7af3a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

base/c.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ with a Julia variable named `s`. See also `ccall`.
681681
682682
Varargs are supported with the following convention:
683683
684-
@ccall sprintf("%s = %d"::Cstring ; "foo"::Cstring, foo::Cint)::Cint
684+
@ccall printf("%s = %d"::Cstring ; "foo"::Cstring, foo::Cint)::Cint
685685
686686
The semicolon is used to separate required arguments (of which there
687687
must be at least one) from variadic arguments.

doc/src/base/c.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# C Interface
22

33
```@docs
4+
@ccall
45
ccall
56
Core.Intrinsics.cglobal
67
Base.@cfunction

0 commit comments

Comments
 (0)