Skip to content

Commit 7ba1b33

Browse files
authored
Don't use do as variable name in doc strings. (#53924)
1 parent 98f4747 commit 7ba1b33

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

base/array.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ function unsafe_copyto!(dest::Ptr{T}, src::Ptr{T}, n) where T
275275
end
276276

277277
"""
278-
unsafe_copyto!(dest::Array, do, src::Array, so, N)
278+
unsafe_copyto!(dest::Array, doffs, src::Array, soffs, n)
279279
280-
Copy `N` elements from a source array to a destination, starting at the linear index `so` in the
281-
source and `do` in the destination (1-indexed).
280+
Copy `n` elements from a source array to a destination, starting at the linear index `soffs` in the
281+
source and `doffs` in the destination (1-indexed).
282282
283283
The `unsafe` prefix on this function indicates that no validation is performed to ensure
284-
that N is inbounds on either array. Incorrect usage may corrupt or segfault your program, in
284+
that n is inbounds on either array. Incorrect usage may corrupt or segfault your program, in
285285
the same manner as C.
286286
"""
287287
function unsafe_copyto!(dest::Array, doffs, src::Array, soffs, n)
@@ -291,10 +291,10 @@ function unsafe_copyto!(dest::Array, doffs, src::Array, soffs, n)
291291
end
292292

293293
"""
294-
copyto!(dest, do, src, so, N)
294+
copyto!(dest, doffs, src, soffs, n)
295295
296-
Copy `N` elements from collection `src` starting at the linear index `so`, to array `dest` starting at
297-
the index `do`. Return `dest`.
296+
Copy `n` elements from collection `src` starting at the linear index `soffs`, to array `dest` starting at
297+
the index `doffs`. Return `dest`.
298298
"""
299299
copyto!(dest::Array, doffs::Integer, src::Array, soffs::Integer, n::Integer) = _copyto_impl!(dest, doffs, src, soffs, n)
300300
copyto!(dest::Array, doffs::Integer, src::Memory, soffs::Integer, n::Integer) = _copyto_impl!(dest, doffs, src, soffs, n)

0 commit comments

Comments
 (0)