Skip to content

Commit 64c8352

Browse files
authored
Enhance description of $(list-slice) function
Clarified description of the $(list-slice) function to include details about list indexing and omitting indices. Signed-off-by: Hofi <hofione@gmail.com>
1 parent 59a111b commit 64c8352

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

doc/_admin-guide/110_Template_and_rewrite/000_Customize_message_format/007_Template_functions_of_syslog-ng.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,9 @@ Available options:
767767

768768
| *Syntax:* | $(list-slice \<from\>:\<to\> ${list} ) |
769769

770-
*Description:* Returns the specified subset of the list. Note that the
771-
list index starts with zero, for example, $(list-slice 1:2 ${list} )
770+
*Description:* Returns the specified subset of the list.
771+
772+
The list index starts with zero, for example, $(list-slice 1:2 ${list} )
772773
returns the second and third element of the list, and so on.
773774

774775
You can omit the from or to index if you want to start the subset from

0 commit comments

Comments
 (0)