Skip to content

Commit a578c84

Browse files
authored
Merge pull request #1139 from bartsmykla/macros-dry-unnecessary-spaces
Removed unnecessary spaces before macro designators in macros/dry
2 parents b91b2ce + 4fbafbb commit a578c84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros/dry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::ops::{Add, Mul, Sub};
1010
macro_rules! assert_equal_len {
1111
// The `tt` (token tree) designator is used for
1212
// operators and tokens.
13-
($a:ident, $b: ident, $func:ident, $op:tt) => (
13+
($a:ident, $b:ident, $func:ident, $op:tt) => (
1414
assert!($a.len() == $b.len(),
1515
"{:?}: dimension mismatch: {:?} {:?} {:?}",
1616
stringify!($func),
@@ -41,7 +41,7 @@ op!(sub_assign, Sub, -=, sub);
4141
mod test {
4242
use std::iter;
4343
macro_rules! test {
44-
($func: ident, $x:expr, $y:expr, $z:expr) => {
44+
($func:ident, $x:expr, $y:expr, $z:expr) => {
4545
#[test]
4646
fn $func() {
4747
for size in 0usize..10 {

0 commit comments

Comments
 (0)