Skip to content

Commit a706625

Browse files
committed
Format the map_both! example
1 parent 958353c commit a706625

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ macro_rules! for_both {
106106
///
107107
/// struct Wrapper<T>(T);
108108
///
109-
/// fn wrap(owned_or_borrowed: Either<String, &'static str>) -> Either<Wrapper<String>, Wrapper<&'static str>> {
110-
/// either::map_both!(owned_or_borrowed, s => Wrapper(s))
109+
/// fn wrap(
110+
/// owned_or_borrowed: Either<String, &'static str>,
111+
/// ) -> Either<Wrapper<String>, Wrapper<&'static str>> {
112+
/// either::map_both!(owned_or_borrowed, s => Wrapper(s))
111113
/// }
112114
/// ```
113115
#[macro_export]

0 commit comments

Comments
 (0)