Skip to content

Commit 481ce69

Browse files
committed
No need to import std.stdio for top-level example code
1 parent 39b4674 commit 481ce69

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

spec/statement.dd

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ $(P
525525
)
526526
$(SPEC_RUNNABLE_EXAMPLE_RUN
527527
--------------
528-
import std.stdio;
529528
char[] a = ['h', 'i'];
530529

531530
foreach (size_t i, char c; a)
@@ -569,7 +568,6 @@ $(H3 $(LNAME2 foreach_over_arrays_of_characters, Foreach over Arrays of Characte
569568

570569
$(SPEC_RUNNABLE_EXAMPLE_RUN
571570
--------------
572-
import std.stdio;
573571
char[] a = "\xE2\x89\xA0".dup; // \u2260 encoded as 3 UTF-8 bytes
574572

575573
foreach (dchar c; a)
@@ -592,8 +590,6 @@ foreach (char c; b)
592590

593591
$(SPEC_RUNNABLE_EXAMPLE_RUN
594592
--------------
595-
import std.stdio;
596-
597593
foreach (char c; "ab")
598594
{
599595
writefln("'%s'", c);
@@ -969,7 +965,6 @@ $(H3 $(LNAME2 foreach_ref_parameters, Foreach Ref Parameters))
969965

970966
$(SPEC_RUNNABLE_EXAMPLE_RUN
971967
--------------
972-
import std.stdio;
973968
uint[2] a = [7, 8];
974969

975970
foreach (ref uint u; a)
@@ -1783,8 +1778,6 @@ $(PSCURLYSCOPE) when the scope exits due to exception unwinding.
17831778

17841779
$(SPEC_RUNNABLE_EXAMPLE_RUN
17851780
----
1786-
import std.stdio;
1787-
17881781
write("1");
17891782
{
17901783
write("2");
@@ -1805,7 +1798,6 @@ $(CONSOLE
18051798

18061799
$(SPEC_RUNNABLE_EXAMPLE_RUN
18071800
----
1808-
import std.stdio;
18091801
{
18101802
scope(exit) write("1");
18111803
scope(success) write("2");
@@ -1824,8 +1816,6 @@ $(CONSOLE
18241816

18251817
$(SPEC_RUNNABLE_EXAMPLE_RUN
18261818
----
1827-
import std.stdio;
1828-
18291819
struct Foo
18301820
{
18311821
this(string s) { write(s); }

0 commit comments

Comments
 (0)