Skip to content

Commit 3c2baf3

Browse files
committed
Add missing docs
1 parent 716b194 commit 3c2baf3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/calendar/src/any_calendar.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ pub enum AnyDateInner {
160160
/// - A list of idents to be used for matching AnyDateInners and the Hijri tabular algorithm
161161
/// 3. `$expr`: The name of a macro that generates an expression for the match statement. It is passed the same
162162
/// arguments as `$pattern`, except without the Hijri tabular algorithm, since it is contained within `c`.
163+
/// 4. `[$d1, $alg1, $d2, $alg2, ...]`: A list of identifiers that are passed into `$pattern` and `$expr`.
164+
/// There should generally be 2 identifiers per date being matched.
165+
/// 5. `$exhaustive_expr`: The expression for the `_` pattern.
163166
#[rustfmt::skip]
164167
macro_rules! match_cal_general {
165168
($cal:expr, $pattern:ident, $expr:ident $(, [$($d:ident, $alg:ident),+], $exhaustive_expr:expr)?) => {

0 commit comments

Comments
 (0)