Fix example that could fail in certain circumstances
authorTerry Wilson <twilson@digium.com>
Thu, 23 Apr 2009 00:44:18 +0000 (00:44 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 23 Apr 2009 00:44:18 +0000 (00:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190154 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_strings.c

index ef08034..35211ab 100644 (file)
@@ -282,7 +282,7 @@ AST_THREADSTORAGE(result_buf);
                <description>
                        <para>Example:</para>
                        <para>exten => s,1,Set(array=one,two,three)</para>
-                       <para>exten => s,n,While($[${SET(var=${SHIFT(array)})}])</para>
+                       <para>exten => s,n,While($["${SET(var=${SHIFT(array)})}" != ""])</para>
                        <para>exten => s,n,NoOp(var is ${var})</para>
                        <para>exten => s,n,EndWhile</para>
                        <para>This would iterate over each value in array, left to right, and
@@ -302,7 +302,7 @@ AST_THREADSTORAGE(result_buf);
                <description>
                        <para>Example:</para>
                        <para>exten => s,1,Set(array=one,two,three)</para>
-                       <para>exten => s,n,While($[${SET(var=${POP(array)})}])</para>
+                       <para>exten => s,n,While($["${SET(var=${POP(array)})}" != ""])</para>
                        <para>exten => s,n,NoOp(var is ${var})</para>
                        <para>exten => s,n,EndWhile</para>
                        <para>This would iterate over each value in array, right to left, and