Skip to content

Commit cfb33fc

Browse files
committed
Merge pull request #4311 from FranklinChen/fix-macro-tutorial
Remove semicolons at the end of macro_rules! definitions that cause compile failure
2 parents 62d6031 + 6e7cf87 commit cfb33fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial-macros.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ macro_rules! early_return(
4343
_ => {}
4444
}
4545
);
46-
);
46+
)
4747
// ...
4848
early_return!(input_1 special_a);
4949
// ...
@@ -160,7 +160,7 @@ macro_rules! early_return(
160160
_ => {}
161161
}
162162
);
163-
);
163+
)
164164
// ...
165165
early_return!(input_1, [special_a|special_c|special_d]);
166166
// ...

0 commit comments

Comments
 (0)