From 3c4bccd93b2b7d9954ebd3ab43268a3e13185775 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Thu, 26 Oct 2023 10:56:07 +0200 Subject: [PATCH] docs: delete misleading `::Function` annotation in the `ntuple` doc (#51836) The first argument is not actually restricted to `Function` types. --- base/ntuple.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/ntuple.jl b/base/ntuple.jl index 7391b86154ac4..4720e7a3915a8 100644 --- a/base/ntuple.jl +++ b/base/ntuple.jl @@ -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.