Skip to content

Commit

Permalink
add documentation for Function type (#21649)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Smith authored and JeffBezanson committed May 1, 2017
1 parent 3ea63a4 commit 0be9996
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -693,4 +693,22 @@ run(pipeline(`cat test.txt`, DevNull))
"""
DevNull

"""
Function
Abstract type of all functions.
```jldoctest
julia> isa(+, Function)
true
julia> typeof(sin)
Base.#sin
julia> ans <: Function
true
```
"""
Function

end
1 change: 1 addition & 0 deletions doc/src/stdlib/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Base.instances
## Generic Functions

```@docs
Core.Function
Base.method_exists
Core.applicable
Core.invoke
Expand Down

0 comments on commit 0be9996

Please sign in to comment.