Skip to content

Commit 4d4e5d7

Browse files
authored
Improve table.move documentation (#887)
## Changes The existing documentation is fairly vague about how `move` operates, this clarifies the behaviour in an easier to understand manner. ~~Note: i'm unsure if the ending index in `dst` is actually `t + (b - a)`, will edit if not the case.~~ ## Checks By submitting your pull request for review, you agree to the following: - [x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [x] To the best of my knowledge, all proposed changes are accurate.
1 parent d3f719c commit 4d4e5d7

File tree

1 file changed

+3
-2
lines changed
  • content/en-us/reference/engine/libraries

1 file changed

+3
-2
lines changed

content/en-us/reference/engine/libraries/table.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,9 @@ functions:
344344
summary: |
345345
Copies the specified range of elements from one table to another.
346346
description: |
347-
Copies elements from table `src` into table `dst`. Is equivalent to the
348-
multiple assignment statement: `dst[t], ... = src[a], ..., src[b]`.
347+
Copies elements in table `src` from `src[a]` up to `src[b]` into table
348+
`dst` starting at index `t`. Equivalent to the assignment statement
349+
`dst[t], ..., dst[t + (b - a)] = src[a], ..., src[b]`.
349350
350351
The default for `dst` is `src`. The destination range may overlap with the
351352
source range.

0 commit comments

Comments
 (0)