Skip to content

Commit 2308dba

Browse files
dkorpeldlang-bot
authored andcommitted
Fix ImportC square example
1 parent 857156d commit 2308dba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/importc.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $(H2 $(LNAME2 examples, Quick Examples))
3737
hello world
3838
)
3939

40-
$(P C function in file $(TT square.c):)
40+
$(P C function in file $(TT functions.c):)
4141

4242
$(CCODE
4343
int square(int i)
@@ -50,7 +50,7 @@ $(H2 $(LNAME2 examples, Quick Examples))
5050

5151
---
5252
import std.stdio;
53-
import square;
53+
import functions;
5454
void main()
5555
{
5656
int i = 7;
@@ -61,7 +61,7 @@ $(H2 $(LNAME2 examples, Quick Examples))
6161
$(P Compile and run:)
6262

6363
$(CONSOLE
64-
dmd demo.d square.c
64+
dmd demo.d functions.c
6565
./demo
6666
The square of 7 is 49
6767
)

0 commit comments

Comments
 (0)