Add a syntax description of for_both!

Co-authored-by: bluss <bluss@users.noreply.github.com>
This commit is contained in:
Josh Stone 2022-06-23 16:37:03 -07:00 committed by GitHub
parent 2742b1aadb
commit 56d61a88b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,8 @@ pub enum Either<L, R> {
/// This macro is useful in cases where both sides of [`Either`] can be interacted with
/// in the same way even though the don't share the same type.
///
/// Syntax: `either::for_both!(` *expression* `,` *pattern* `=>` *expression* `)`
///
/// # Example
///
/// ```