[Swift-commit] r7682 - trunk/docs/userguide

yadunandb at ci.uchicago.edu yadunandb at ci.uchicago.edu
Mon Mar 10 13:45:27 CDT 2014


Author: yadunandb
Date: 2014-03-10 13:45:27 -0500 (Mon, 10 Mar 2014)
New Revision: 7682

Modified:
   trunk/docs/userguide/language
Log:

Doc correction for using the append operator << instead of append function.


Modified: trunk/docs/userguide/language
===================================================================
--- trunk/docs/userguide/language	2014-03-10 18:23:25 UTC (rev 7681)
+++ trunk/docs/userguide/language	2014-03-10 18:45:27 UTC (rev 7682)
@@ -207,7 +207,7 @@
 int[auto] array;
 
 foreach i in [1:100] {
-  append(array, i * 2);
+  array << (i*2) ;
 }
 
 foreach v in array {




More information about the Swift-commit mailing list