mirror of
https://gitee.com/openharmony/third_party_rust_either
synced 2024-11-23 15:09:43 +00:00
Add a syntax description of for_both!
Co-authored-by: bluss <bluss@users.noreply.github.com>
This commit is contained in:
parent
2742b1aadb
commit
56d61a88b6
@ -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
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user