fixed comment [#CLICKHOUSE-2090]

This commit is contained in:
Nikolai Kochetov 2017-09-01 15:23:06 +03:00
parent 7885c5c032
commit 1da43b683c

View File

@ -65,15 +65,15 @@ namespace ErrorCodes
* arrayConcat(arr1, ...) - concatenate arrays.
*
* arraySlice(arr, offset, length) - make slice of array. Offsets and length may be < 0 or Null
* - if offset <= 0, indexation from right element
* - if offset < 0, indexation from right element
* - if length < 0, length = len(array) - (positive_index(offset) - 1) + length
* indexation:
* [ 1, 2, 3, 4, 5, 6]
* [-5, -4, -3, -2, -1, 0]
* [-6, -5, -4, -3, -2, -1]
* examples:
* arraySlice([1, 2, 3, 4, 5, 6], -4, 2) -> [2, 3]
* arraySlice([1, 2, 3, 4, 5, 6], -4, 2) -> [3, 4]
* arraySlice([1, 2, 3, 4, 5, 6], 2, -1) -> [2, 3, 4, 5] (6 - (2 - 1) + (-1) = 4)
* arraySlice([1, 2, 3, 4, 5, 6], -4, -1) = arraySlice([1, 2, 3, 4, 5, 6], -4, -1) -> [2, 3, 4, 5]
* arraySlice([1, 2, 3, 4, 5, 6], -5, -1) = arraySlice([1, 2, 3, 4, 5, 6], 2, -1) -> [2, 3, 4, 5]
*
* arrayPushBack(arr, x), arrayPushFront(arr, x)
* arrayPopBack(arr), arrayPopFront(arr)