Skip to content

Commit

Permalink
[doc] dlopen docstring (#31475)
Browse files Browse the repository at this point in the history
Documentation for `dlopen_e`: looks like copy-paste error from d9d2b9c#diff-4f669dd4cc416a82508956a377e6a7c9

Correct:
`dlopen_e` deprecated in favor of `dlopen(...throw_error=false)`;
`dlsym_e` deprecated in favor of `dlsym(...throw_error=false)`;

Current documentation lists `dlopen_e` deprecated in favor of `dlsym`.
  • Loading branch information
daviehh authored and staticfloat committed Mar 25, 2019
1 parent 92a361b commit ea0c6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Libdl/src/Libdl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ end
dlopen_e(libfile::AbstractString [, flags::Integer])
Similar to [`dlopen`](@ref), except returns `C_NULL` instead of raising errors.
This method is now deprecated in favor of `dlsym(handle, sym; throw_error=false)`.
This method is now deprecated in favor of `dlopen(libfile::AbstractString [, flags::Integer]; throw_error=false)`.
"""
dlopen_e(args...) = something(dlopen(args...; throw_error=false), C_NULL)

Expand Down

0 comments on commit ea0c6e9

Please sign in to comment.