From: Nan Xiao Date: Fri, 27 Nov 2015 02:33:37 +0000 (-0500) Subject: stap.1: tweak foreach template text X-Git-Tag: release-3.0~251 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5042c9a2ab6a04cff969348fe391eec21b142e1b;p=systemtap.git stap.1: tweak foreach template text --- diff --git a/man/stap.1 b/man/stap.1 index 92c4ec9bd..42612aa51 100644 --- a/man/stap.1 +++ b/man/stap.1 @@ -1092,12 +1092,12 @@ Same as above, where iterations are limited to elements in the array where the keys match the index values specified. The symbol * can be used to specify an index and will be treated as a wildcard. .TP -.BR foreach " (VALUE = VAR " in " ARRAY [ "limit " EXP ]) STMT" -This variant of foreach saves current value into VALUE on each +.BR foreach " (VAR0 = VAR " in " ARRAY [ "limit " EXP ]) STMT" +This variant of foreach saves current value into VAR0 on each iteration, so it is the same as ARRAY[VAR]. This also works with a -tuple of keys. Sorting suffixes on VALUE have the same effect as on ARRAY. +tuple of keys. Sorting suffixes on VAR0 have the same effect as on ARRAY. .TP -.BR foreach " (VALUE = VAR " in " ARRAY [INDEX1, INDEX2, ...] [ "limit " EXP ]) STMT" +.BR foreach " (VAR0 = VAR " in " ARRAY [INDEX1, INDEX2, ...] [ "limit " EXP ]) STMT" Same as above, where iterations are limited to elements in the array where the keys match the index values specified. The symbol * can be used to specify an index and will be treated as a wildcard.