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

Changes between Version 2 and Version 3 of ForeachWithStringLiteralExample

Show
Ignore:
Author:
jcc7 (IP: 192.149.244.9)
Timestamp:
10/17/06 15:04:21 (15 years ago)
Comment:

typo

Legend:

Unmodified
Added
Removed
Modified
  • ForeachWithStringLiteralExample

    v2 v3  
    1212{{{ 
    1313#!d 
    14 import std.stdio
     14import std.stdio : writefln
    1515 
    1616void main () { 
    2121    writefln("As a wchar..."); 
    2222    foreach (wchar w; "abcdef") 
    23         writefln("\t%s", c); 
     23        writefln("\t%s", w); 
    2424} 
    2525 
    2626}}} 
     27 
     28== Version == 
     29 
     30Tested with DMD 0.169 on Windows 2000.