Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 3 and Version 4 of ForeachWithInoutExample

Show
Ignore:
Author:
csauls (IP: 69.166.134.113)
Timestamp:
04/20/06 19:27:48 (15 years ago)
Comment:

Corrected typo where a variable "u" was used where "x" was meant.

Legend:

Unmodified
Added
Removed
Modified
  • ForeachWithInoutExample

    v3 v4  
    1919  foreach (i, inout x; a) { 
    2020    writefln("  a[%d] == %d", i, x); 
    21     u++; 
     21    x++; 
    2222  } 
    2323