Skip to content

Commit 897ea29

Browse files
authored
Merge pull request #2984 from ntrel/sort-ex
index.dd: avoid using std.conv.text
2 parents 5be3394 + f3f2236 commit 897ea29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ $(EXTRA_EXAMPLE_RUNNABLE Sort an Array at Compile-Time,
103103
----
104104
void main()
105105
{
106-
import std.algorithm, std.conv, std.stdio;
106+
import std.algorithm, std.stdio;
107107

108108
"Starting program".writeln;
109109

110-
// Sort a constant declaration at Compile-Time
111110
enum a = [ 3, 1, 2, 4, 0 ];
111+
// Sort data at compile-time
112112
static immutable b = sort(a);
113113

114114
// Print the result _during_ compilation
115-
pragma(msg, text("Finished compilation: ", b));
115+
pragma(msg, "Finished compilation: ", b);
116116
}
117117
----
118118
)

0 commit comments

Comments
 (0)