Skip to content

Commit cd22c4d

Browse files
committed
Fix brace style
1 parent 93cb9a9 commit cd22c4d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spec/declaration.dd

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,13 @@ $(SPEC_RUNNABLE_EXAMPLE_RUN
455455
-----------
456456
import std.stdio : writeln;
457457

458-
void fun(int v = 6) {
458+
void fun(int v = 6)
459+
{
459460
writeln("v: ", v);
460461
}
461462

462-
void main() {
463+
void main()
464+
{
463465
fun(); // prints v: 6
464466

465467
alias Foo = void function(int=7);
@@ -473,7 +475,8 @@ $(SPEC_RUNNABLE_EXAMPLE_RUN
473475
-----------
474476
import std.stdio : writefln;
475477

476-
void main() {
478+
void main()
479+
{
477480
fun(4); // prints a: 4, b: 6, c: 7
478481

479482
Bar bar = &fun;
@@ -489,7 +492,8 @@ void main() {
489492
alias Bar = void function(int, int, int=9);
490493
alias Baz = void function(int=2, int=3, int=4);
491494

492-
void fun(int a, int b = 6, int c = 7) {
495+
void fun(int a, int b = 6, int c = 7)
496+
{
493497
writefln("a: %d, b: %d, c: %d", a, b, c);
494498
}
495499
-----------

0 commit comments

Comments
 (0)