Skip to content

Change offset to linear index in (unsafe_)copyto docstring#49147

Merged
dkarrasch merged 1 commit intoJuliaLang:masterfrom
jishnub:copytoindex
Mar 25, 2023
Merged

Change offset to linear index in (unsafe_)copyto docstring#49147
dkarrasch merged 1 commit intoJuliaLang:masterfrom
jishnub:copytoindex

Conversation

@jishnub
Copy link
Copy Markdown
Member

@jishnub jishnub commented Mar 25, 2023

The use of offset in the docstring seems to suggest that the arguments so and do are to be added to firstindex, and these may be 0-based. However, these arguments are actually used as the starting indices. In this case, it's better to use index in the docstring.

@jishnub jishnub changed the title Change offset to indices in (unsafe_)copyto docstring Change offset to linear index in (unsafe_)copyto docstring Mar 25, 2023
@jishnub jishnub added the docs This change adds or pertains to documentation label Mar 25, 2023
@dkarrasch dkarrasch added the arrays [a, r, r, a, y, s] label Mar 25, 2023
@dkarrasch dkarrasch merged commit 88a1fc7 into JuliaLang:master Mar 25, 2023
@jishnub jishnub deleted the copytoindex branch March 25, 2023 11:49
@jishnub jishnub added the backport 1.9 Change should be backported to release-1.9 label Apr 3, 2023
KristofferC pushed a commit that referenced this pull request Apr 9, 2023
@KristofferC KristofferC mentioned this pull request Apr 9, 2023
26 tasks
Xnartharax pushed a commit to Xnartharax/julia that referenced this pull request Apr 19, 2023
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrays [a, r, r, a, y, s] docs This change adds or pertains to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants