Skip to content

Commit

Permalink
Fix error in ccall doc
Browse files Browse the repository at this point in the history
Return type of Fortran function should be Void or T, not Ptr{T}

ref: #14930 (comment)
  • Loading branch information
jiahao committed Feb 6, 2016
1 parent dbdf28c commit 3256421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manual/calling-c-and-fortran-code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ structs.
In Julia code wrapping calls to external Fortran routines, all input arguments
should be declared as of type ``Ref{T}``, as Fortran passes all variables by
reference. The return type should either be ``Void`` for Fortran subroutines,
or a ``Ptr{T}`` for Fortran functions returning the type ``T``.
or a ``T`` for Fortran functions returning the type ``T``.


Mapping C Functions to Julia
Expand Down

0 comments on commit 3256421

Please sign in to comment.