Update javascript/ql/src/semmle/javascript/TypeScript.qll

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Erik Krogh Kristensen
2021-02-26 10:23:01 +01:00
committed by GitHub
parent 055275b971
commit 1cac692b1d

View File

@@ -2150,7 +2150,7 @@ class TupleType extends ArrayType, @tuple_type {
/**
* Gets the index of the rest element.
* E.g. for a type `[number, ...string[]]` the result is 1,
* For example, for a type `[number, ...string[]]` the result is 1,
* or for a type `[...number[], string]` the result is 0.
*/
int getRestElementIndex() { tuple_type_rest_index(this, result) }