Skip to content

Commit 24affdc

Browse files
authored
Change misleading ident to expr
If marked as `ident`, `$a.len()` and `$b.len()` are confusing. Actually, `xs` and `ys` are expressions, too.
1 parent b4674bc commit 24affdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macros/dry.md

Lines changed: 1 addition & 1 deletion
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:expr, $b:expr, $func:ident, $op:tt) => {
1414
assert!($a.len() == $b.len(),
1515
"{:?}: dimension mismatch: {:?} {:?} {:?}",
1616
stringify!($func),

0 commit comments

Comments
 (0)