Skip to content

Commit

Permalink
docs: delete misleading ::Function annotation in the ntuple doc (J…
Browse files Browse the repository at this point in the history
…uliaLang#51836)

The first argument is not actually restricted to `Function` types.
  • Loading branch information
nsajko committed Oct 26, 2023
1 parent 6900ee1 commit 3c4bccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/ntuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# `ntuple`, for constructing tuples of a given length

"""
ntuple(f::Function, n::Integer)
ntuple(f, n::Integer)
Create a tuple of length `n`, computing each element as `f(i)`,
where `i` is the index of the element.
Expand Down

0 comments on commit 3c4bccd

Please sign in to comment.