Skip to content

Commit 4fbafbb

Browse files
author
Bart Smykla
committed
Removed unnecessary spaces before macro designators in macros/dry
In other places there is no space before designators so I removed unnecessary spaces in two places to make it more consistent. Signed-off-by: Bart Smykla <[email protected]>
1 parent b91b2ce commit 4fbafbb

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)