@@ -6,9 +6,9 @@ fn main() {
6
6
macro_rules! one_nested_count_and_len {
7
7
( $( [ $( $l: literal ) ,* ] ) ,* ) => {
8
8
[
9
- // outer-most repetition
9
+ // outermost repetition
10
10
$(
11
- // inner-most repetition
11
+ // innermost repetition
12
12
$(
13
13
${ ignore( $l) } ${ index( ) } , ${ len( ) } ,
14
14
) *
@@ -23,34 +23,34 @@ fn main() {
23
23
[
24
24
// # ["foo"]
25
25
26
- // ## inner-most repetition (first iteration)
26
+ // ## innermost repetition (first iteration)
27
27
//
28
- // `index` is 0 because this is the first inner-most iteration.
29
- // `len` is 1 because there is only one inner-most repetition, "foo".
28
+ // `index` is 0 because this is the first innermost iteration.
29
+ // `len` is 1 because there is only one innermost repetition, "foo".
30
30
0 , 1 ,
31
- // ## outer-most repetition (first iteration)
31
+ // ## outermost repetition (first iteration)
32
32
//
33
33
// `count` is 1 because of "foo", i,e, `$l` has only one repetition,
34
- // `index` is 0 because this is the first outer-most iteration.
35
- // `len` is 2 because there are 2 outer-most repetitions, ["foo"] and ["bar", "baz"]
34
+ // `index` is 0 because this is the first outermost iteration.
35
+ // `len` is 2 because there are 2 outermost repetitions, ["foo"] and ["bar", "baz"]
36
36
1 , 0 , 2 ,
37
37
// # ["bar", "baz"]
38
38
39
- // ## inner-most repetition (first iteration)
39
+ // ## innermost repetition (first iteration)
40
40
//
41
- // `index` is 0 because this is the first inner-most iteration
41
+ // `index` is 0 because this is the first innermost iteration
42
42
// `len` is 2 because there are repetitions, "bar" and "baz"
43
43
0 , 2 ,
44
- // ## inner-most repetition (second iteration)
44
+ // ## innermost repetition (second iteration)
45
45
//
46
- // `index` is 1 because this is the second inner-most iteration
46
+ // `index` is 1 because this is the second innermost iteration
47
47
// `len` is 2 because there are repetitions, "bar" and "baz"
48
48
1 , 2 ,
49
- // ## outer-most repetition (second iteration)
49
+ // ## outermost repetition (second iteration)
50
50
//
51
51
// `count` is 2 because of "bar" and "baz", i,e, `$l` has two repetitions,
52
- // `index` is 1 because this is the second outer-most iteration
53
- // `len` is 2 because there are 2 outer-most repetitions, ["foo"] and ["bar", "baz"]
52
+ // `index` is 1 because this is the second outermost iteration
53
+ // `len` is 2 because there are 2 outermost repetitions, ["foo"] and ["bar", "baz"]
54
54
2 , 1 , 2 ,
55
55
// # last count
56
56
@@ -61,7 +61,7 @@ fn main() {
61
61
62
62
// Based on the above explanation, the following macros should be straightforward
63
63
64
- // Grouped from the outer-most to the inner-most
64
+ // Grouped from the outermost to the innermost
65
65
macro_rules! three_nested_count {
66
66
( $( { $( [ $( ( $( $i: ident ) * ) ) * ] ) * } ) * ) => {
67
67
& [
@@ -156,7 +156,7 @@ fn main() {
156
156
] [ ..]
157
157
) ;
158
158
159
- // Grouped from the outer-most to the inner-most
159
+ // Grouped from the outermost to the innermost
160
160
macro_rules! three_nested_len {
161
161
( $( { $( [ $( ( $( $i: ident ) * ) ) * ] ) * } ) * ) => {
162
162
& [
0 commit comments