Skip to content

Commit

Permalink
Update cfunction docstring (#23084)
Browse files Browse the repository at this point in the history
* Update cfunction docstring

* Update c.jl

* Add return type
  • Loading branch information
musm authored and tkelman committed Aug 7, 2017
1 parent ff7fae1 commit 9363b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/c.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import Core.Intrinsics: cglobal, bitcast

"""
cfunction(function::Function, ReturnType::Type, ArgumentTypes::Type)
cfunction(f::Function, returntype::Type, argtypes::Type) -> Ptr{Void}
Generate C-callable function pointer from Julia function. Type annotation of the return
Generate C-callable function pointer from the Julia function `f`. Type annotation of the return
value in the callback function is a must for situations where Julia cannot infer the return
type automatically.
Expand Down

0 comments on commit 9363b49

Please sign in to comment.