[asterisk-commits] twilson: trunk r190154 - /trunk/funcs/func_strings.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 22 19:44:48 CDT 2009


Author: twilson
Date: Wed Apr 22 19:44:18 2009
New Revision: 190154

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190154
Log:
Fix example that could fail in certain circumstances

Modified:
    trunk/funcs/func_strings.c

Modified: trunk/funcs/func_strings.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/funcs/func_strings.c?view=diff&rev=190154&r1=190153&r2=190154
==============================================================================
--- trunk/funcs/func_strings.c (original)
+++ trunk/funcs/func_strings.c Wed Apr 22 19:44:18 2009
@@ -282,7 +282,7 @@
 		<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 @@
 		<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




More information about the asterisk-commits mailing list