From 4e5540f509f8bc505fd256a3f84059ceec99cb36 Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Thu, 1 Apr 2021 00:01:15 +0000 Subject: [PATCH] fix docstrings on `first` and `last` (#40278) --- base/abstractarray.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/abstractarray.jl b/base/abstractarray.jl index 4bc3c4f70ebb4..724b23c6e8ca3 100644 --- a/base/abstractarray.jl +++ b/base/abstractarray.jl @@ -391,7 +391,7 @@ end """ first(itr, n::Integer) -Get the first `n` elements of the iterable collection `itr`, or fewer elements if `v` is not +Get the first `n` elements of the iterable collection `itr`, or fewer elements if `itr` is not long enough. !!! compat "Julia 1.6" @@ -439,7 +439,7 @@ last(a) = a[end] """ last(itr, n::Integer) -Get the last `n` elements of the iterable collection `itr`, or fewer elements if `v` is not +Get the last `n` elements of the iterable collection `itr`, or fewer elements if `itr` is not long enough. !!! compat "Julia 1.6"