Skip to content

Commit cf44d16

Browse files
committed
Use an example with more than one import for a module
1 parent be36f54 commit cf44d16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/module.dd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,12 @@ all `import`s are selective, or when the imported module has a qualified name:)
408408

409409
$(SPEC_RUNNABLE_EXAMPLE_COMPILE
410410
---
411-
import std.stdio : writeln, std.file : write, std.ascii;
411+
import std.stdio : writeln, writefln, std.file : write, std.ascii;
412412

413413
void main()
414414
{
415415
writeln("hello!"); // ok, writeln from std.stdio
416+
writefln("%s!", "hello"); // ok, writefln from std.stdio
416417
write("world.txt", "hello"); // ok, write from std.file
417418
writeln(digits); // ok, digits from std.ascii
418419
}

0 commit comments

Comments
 (0)